Struct dynamodb_book_ch21_github::OwnerName
source · #[repr(transparent)]pub struct OwnerName(_);
Implementations§
source§impl OwnerName
impl OwnerName
sourcepub const fn new(raw: CompactString) -> Self
pub const fn new(raw: CompactString) -> Self
Constructs a new OwnerName
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new OwnerName from a static reference
sourcepub fn into_boxed_ref(self) -> Box<OwnerNameRef>
pub fn into_boxed_ref(self) -> Box<OwnerNameRef>
Converts this OwnerName
into a Box<OwnerNameRef>
This will drop any excess capacity.
sourcepub fn take(self) -> CompactString
pub fn take(self) -> CompactString
Unwraps the underlying CompactString
value
Methods from Deref<Target = OwnerNameRef>§
Trait Implementations§
source§impl AsRef<OwnerNameRef> for OwnerName
impl AsRef<OwnerNameRef> for OwnerName
source§fn as_ref(&self) -> &OwnerNameRef
fn as_ref(&self) -> &OwnerNameRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<OwnerNameRef> for OwnerName
impl Borrow<OwnerNameRef> for OwnerName
source§fn borrow(&self) -> &OwnerNameRef
fn borrow(&self) -> &OwnerNameRef
Immutably borrows from an owned value. Read more
source§impl<'de> Deserialize<'de> for OwnerName
impl<'de> Deserialize<'de> for OwnerName
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&OwnerNameRef> for OwnerName
impl From<&OwnerNameRef> for OwnerName
source§fn from(s: &OwnerNameRef) -> Self
fn from(s: &OwnerNameRef) -> Self
Converts to this type from the input type.
source§impl From<Box<OwnerNameRef, Global>> for OwnerName
impl From<Box<OwnerNameRef, Global>> for OwnerName
source§fn from(r: Box<OwnerNameRef>) -> Self
fn from(r: Box<OwnerNameRef>) -> Self
Converts to this type from the input type.
source§impl<'a> From<Cow<'a, OwnerNameRef>> for OwnerName
impl<'a> From<Cow<'a, OwnerNameRef>> for OwnerName
source§fn from(r: Cow<'a, OwnerNameRef>) -> Self
fn from(r: Cow<'a, OwnerNameRef>) -> Self
Converts to this type from the input type.
source§impl Ord for OwnerName
impl Ord for OwnerName
source§impl PartialEq<&OwnerNameRef> for OwnerName
impl PartialEq<&OwnerNameRef> for OwnerName
source§fn eq(&self, other: &&OwnerNameRef) -> bool
fn eq(&self, other: &&OwnerNameRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnerName> for &OwnerNameRef
impl PartialEq<OwnerName> for &OwnerNameRef
source§impl PartialEq<OwnerName> for OwnerName
impl PartialEq<OwnerName> for OwnerName
source§impl PartialEq<OwnerName> for OwnerNameRef
impl PartialEq<OwnerName> for OwnerNameRef
source§impl PartialEq<OwnerNameRef> for OwnerName
impl PartialEq<OwnerNameRef> for OwnerName
source§fn eq(&self, other: &OwnerNameRef) -> bool
fn eq(&self, other: &OwnerNameRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OwnerName> for OwnerName
impl PartialOrd<OwnerName> for OwnerName
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for OwnerName
impl StructuralEq for OwnerName
impl StructuralPartialEq for OwnerName
Auto Trait Implementations§
impl RefUnwindSafe for OwnerName
impl Send for OwnerName
impl Sync for OwnerName
impl Unpin for OwnerName
impl UnwindSafe for OwnerName
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more