Enum google_api_proto::google::cloud::gkebackup::logging::v1::restore_config::NamespacedResourceRestoreScope
source · pub enum NamespacedResourceRestoreScope {
AllNamespaces(bool),
SelectedNamespaces(Namespaces),
SelectedApplications(NamespacedNames),
}
Expand description
Specifies the namespaced resources to restore from the Backup. Only one of the entries may be specified. If not specified, NO namespaced resources will be restored.
Variants§
AllNamespaces(bool)
Restore all namespaced resources in the Backup if set to “True”. Specifying this field to “False” is an error.
SelectedNamespaces(Namespaces)
A list of selected Namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored.
SelectedApplications(NamespacedNames)
A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored.
Implementations§
source§impl NamespacedResourceRestoreScope
impl NamespacedResourceRestoreScope
sourcepub fn merge(
field: &mut Option<NamespacedResourceRestoreScope>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<NamespacedResourceRestoreScope>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for NamespacedResourceRestoreScope
impl Clone for NamespacedResourceRestoreScope
source§fn clone(&self) -> NamespacedResourceRestoreScope
fn clone(&self) -> NamespacedResourceRestoreScope
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for NamespacedResourceRestoreScope
impl PartialEq for NamespacedResourceRestoreScope
source§fn eq(&self, other: &NamespacedResourceRestoreScope) -> bool
fn eq(&self, other: &NamespacedResourceRestoreScope) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NamespacedResourceRestoreScope
Auto Trait Implementations§
impl Freeze for NamespacedResourceRestoreScope
impl RefUnwindSafe for NamespacedResourceRestoreScope
impl Send for NamespacedResourceRestoreScope
impl Sync for NamespacedResourceRestoreScope
impl Unpin for NamespacedResourceRestoreScope
impl UnwindSafe for NamespacedResourceRestoreScope
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request