Enum backblaze_b2::raw::buckets::BucketType
[−]
[src]
pub enum BucketType { Public, Private, Snapshot, }
Specifies the type of a bucket on backblaze.
Variants
Public
Private
Snapshot
Methods
impl BucketType
[src]
fn from_str(s: &str) -> Option<BucketType>
Creates a BucketType from a string. The strings are the ones used by the backblaze api.
use backblaze_b2::raw::buckets::BucketType; assert_eq!(BucketType::from_str("allPublic"), Some(BucketType::Public)); assert_eq!(BucketType::from_str("allPrivate"), Some(BucketType::Private)); assert_eq!(BucketType::from_str("snapshot"), Some(BucketType::Snapshot));
fn as_str(&self) -> &'static str
This function returns the string needed to specify the bucket type to the backblaze api.
Trait Implementations
impl Debug for BucketType
[src]
impl Clone for BucketType
[src]
fn clone(&self) -> BucketType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for BucketType
[src]
impl Eq for BucketType
[src]
impl PartialEq for BucketType
[src]
fn eq(&self, __arg_0: &BucketType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'de> Deserialize<'de> for BucketType
[src]
fn deserialize<D>(deserializer: D) -> Result<BucketType, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more