pub struct BucketName(/* private fields */);Implementations§
Source§impl BucketName
impl BucketName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for BucketName
impl AsRef<str> for BucketName
Source§impl Clone for BucketName
impl Clone for BucketName
Source§fn clone(&self) -> BucketName
fn clone(&self) -> BucketName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BucketName
impl Debug for BucketName
Source§impl Display for BucketName
impl Display for BucketName
Source§impl FromStr for BucketName
impl FromStr for BucketName
Source§impl Hash for BucketName
impl Hash for BucketName
Source§impl Ord for BucketName
impl Ord for BucketName
Source§fn cmp(&self, other: &BucketName) -> Ordering
fn cmp(&self, other: &BucketName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BucketName
impl PartialEq for BucketName
Source§fn eq(&self, other: &BucketName) -> bool
fn eq(&self, other: &BucketName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BucketName
impl PartialOrd for BucketName
Source§impl TryFrom<&str> for BucketName
impl TryFrom<&str> for BucketName
impl Eq for BucketName
impl StructuralPartialEq for BucketName
Auto Trait Implementations§
impl Freeze for BucketName
impl RefUnwindSafe for BucketName
impl Send for BucketName
impl Sync for BucketName
impl Unpin for BucketName
impl UnsafeUnpin for BucketName
impl UnwindSafe for BucketName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more