#[repr(i32)]pub enum StorageClass {
Unspecified = 0,
DestinationBucketDefault = 1,
Preserve = 2,
Standard = 3,
Nearline = 4,
Coldline = 5,
Archive = 6,
}
Expand description
Options for handling Google Cloud Storage object storage class.
Variants§
Unspecified = 0
Storage class behavior is unspecified.
DestinationBucketDefault = 1
Use the destination bucket’s default storage class.
Preserve = 2
Preserve the object’s original storage class. This is only supported for transfers from Google Cloud Storage buckets. REGIONAL and MULTI_REGIONAL storage classes will be mapped to STANDARD to ensure they can be written to the destination bucket.
Standard = 3
Set the storage class to STANDARD.
Nearline = 4
Set the storage class to NEARLINE.
Coldline = 5
Set the storage class to COLDLINE.
Archive = 6
Set the storage class to ARCHIVE.
Implementations§
source§impl StorageClass
impl StorageClass
source§impl StorageClass
impl StorageClass
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 Clone for StorageClass
impl Clone for StorageClass
source§fn clone(&self) -> StorageClass
fn clone(&self) -> StorageClass
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StorageClass
impl Debug for StorageClass
source§impl Default for StorageClass
impl Default for StorageClass
source§fn default() -> StorageClass
fn default() -> StorageClass
source§impl From<StorageClass> for i32
impl From<StorageClass> for i32
source§fn from(value: StorageClass) -> i32
fn from(value: StorageClass) -> i32
source§impl Hash for StorageClass
impl Hash for StorageClass
source§impl Ord for StorageClass
impl Ord for StorageClass
source§fn cmp(&self, other: &StorageClass) -> Ordering
fn cmp(&self, other: &StorageClass) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for StorageClass
impl PartialEq for StorageClass
source§fn eq(&self, other: &StorageClass) -> bool
fn eq(&self, other: &StorageClass) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StorageClass
impl PartialOrd for StorageClass
source§fn partial_cmp(&self, other: &StorageClass) -> Option<Ordering>
fn partial_cmp(&self, other: &StorageClass) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for StorageClass
impl TryFrom<i32> for StorageClass
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<StorageClass, UnknownEnumValue>
fn try_from(value: i32) -> Result<StorageClass, UnknownEnumValue>
impl Copy for StorageClass
impl Eq for StorageClass
impl StructuralPartialEq for StorageClass
Auto Trait Implementations§
impl Freeze for StorageClass
impl RefUnwindSafe for StorageClass
impl Send for StorageClass
impl Sync for StorageClass
impl Unpin for StorageClass
impl UnwindSafe for StorageClass
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
§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
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
§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
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>
T
in a tonic::Request