Enum backblaze_b2::raw::buckets::BucketType [] [src]

pub enum BucketType {
    Public,
    Private,
    Snapshot,
}

Specifies the type of a bucket on backblaze.

Variants

Methods

impl BucketType
[src]

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));

This function returns the string needed to specify the bucket type to the backblaze api.

Trait Implementations

impl Debug for BucketType
[src]

Formats the value using the given formatter.

impl Clone for BucketType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for BucketType
[src]

impl Eq for BucketType
[src]

impl PartialEq for BucketType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for BucketType
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for BucketType
[src]

Serialize this value into the given Serde serializer. Read more