[][src]Struct tame_gcs::types::ObjectName

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

A wrapper for strings meant to be used as object names, to validate that they follow Object Name Requirements

Methods

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

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

Creates an ObjectName 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<str> for ObjectName<'a>[src]

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

impl<'a> AsRef<ObjectName<'a>> for (&'a BucketName<'a>, &'a ObjectName<'a>)[src]

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

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

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

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

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> Unpin for ObjectName<'a>

impl<'a> Sync for ObjectName<'a>

impl<'a> Send for ObjectName<'a>

impl<'a> RefUnwindSafe for ObjectName<'a>

impl<'a> UnwindSafe for ObjectName<'a>

Blanket Implementations

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.

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

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

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