Enum google_api_proto::google::cloud::compute::v1::snapshot_settings_storage_location_settings::Policy
source · #[repr(i32)]pub enum Policy {
UndefinedPolicy = 0,
LocalRegion = 403_535_464,
NearestMultiRegion = 212_467_515,
SpecificLocations = 280_093_809,
StorageLocationPolicyUnspecified = 250_644_592,
}
Expand description
The chosen location policy.
Variants§
UndefinedPolicy = 0
A value indicating that the enum field is not set.
LocalRegion = 403_535_464
Store snapshot in the same region as with the originating disk. No additional parameters are needed.
NearestMultiRegion = 212_467_515
Store snapshot to the nearest multi region GCS bucket, relative to the originating disk. No additional parameters are needed.
SpecificLocations = 280_093_809
Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the locations
field.
StorageLocationPolicyUnspecified = 250_644_592
Implementations§
source§impl Policy
impl Policy
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Policy
impl Ord for Policy
source§impl PartialEq for Policy
impl PartialEq for Policy
source§impl PartialOrd for Policy
impl PartialOrd for Policy
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Policy
impl TryFrom<i32> for Policy
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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