[][src]Struct tame_gcs::types::BucketName

pub struct BucketName<'a> { /* fields omitted */ }

A wrapper around strings meant to be used as bucket names, to validate they conform to Bucket Name Requirements

Implementations

impl<'a> BucketName<'a>[src]

pub fn non_validated<S: AsRef<str> + ?Sized>(name: &'a S) -> Self[src]

Creates a BucketName without validating it, meaning that invalid names will result in API failures when requests are actually made to GCS instead.

Trait Implementations

impl<'a> AsRef<[u8]> for BucketName<'a>[src]

impl<'a> AsRef<BucketName<'a>> for ObjectId<'a>[src]

impl<'a> AsRef<str> for BucketName<'a>[src]

impl<'a> Debug for BucketName<'a>[src]

impl<'a> Display for BucketName<'a>[src]

impl<'a> TryFrom<&'a str> for BucketName<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<String> for BucketName<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for BucketName<'a>[src]

impl<'a> Send for BucketName<'a>[src]

impl<'a> Sync for BucketName<'a>[src]

impl<'a> Unpin for BucketName<'a>[src]

impl<'a> UnwindSafe for BucketName<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.