pub struct Part<'p> { /* private fields */ }
Available on crate feature
auth
only.Expand description
Represents authentication parts.
Implementations§
Source§impl<'p> Part<'p>
impl<'p> Part<'p>
Sourcepub const unsafe fn new_unchecked(string: Cow<'p, str>) -> Self
pub const unsafe fn new_unchecked(string: Cow<'p, str>) -> Self
Sourcepub const unsafe fn owned_unchecked(string: String) -> Self
pub const unsafe fn owned_unchecked(string: String) -> Self
Sourcepub const unsafe fn borrowed_unchecked(string: &'p str) -> Self
pub const unsafe fn borrowed_unchecked(string: &'p str) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Part<'_>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Part<'_>
Available on crate feature
serde
only.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
impl<'p> Eq for Part<'p>
impl<'p> StructuralPartialEq for Part<'p>
Auto Trait Implementations§
impl<'p> Freeze for Part<'p>
impl<'p> RefUnwindSafe for Part<'p>
impl<'p> Send for Part<'p>
impl<'p> Sync for Part<'p>
impl<'p> Unpin for Part<'p>
impl<'p> UnwindSafe for Part<'p>
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