Struct tame_gcs::types::BucketName [−][src]
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]
fn as_ref(&self) -> &BucketName<'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.
fn try_from(n: &'a str) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<String> for BucketName<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for BucketName<'a>
impl<'a> Send for BucketName<'a>
impl<'a> Sync for BucketName<'a>
impl<'a> Unpin for BucketName<'a>
impl<'a> UnwindSafe for BucketName<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,