pub struct UserAccountID(pub String);Expand description
Stores user account ID in the form “acct:{username}@hypothes.is”
Create from username:
let user_id = "my_username".parse::<UserAccountID>().unwrap();Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for UserAccountID
impl Clone for UserAccountID
Source§fn clone(&self) -> UserAccountID
fn clone(&self) -> UserAccountID
Returns a duplicate of the value. Read more
1.0.0 · 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 UserAccountID
impl Debug for UserAccountID
Source§impl Default for UserAccountID
impl Default for UserAccountID
Source§fn default() -> UserAccountID
fn default() -> UserAccountID
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserAccountID
impl<'de> Deserialize<'de> for UserAccountID
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UserAccountID
impl Display for UserAccountID
Source§impl From<&UserAccountID> for UserAccountID
impl From<&UserAccountID> for UserAccountID
Source§fn from(a: &UserAccountID) -> UserAccountID
fn from(a: &UserAccountID) -> UserAccountID
Converts to this type from the input type.
Source§impl FromStr for UserAccountID
impl FromStr for UserAccountID
Source§impl PartialEq for UserAccountID
impl PartialEq for UserAccountID
Source§impl Serialize for UserAccountID
impl Serialize for UserAccountID
impl StructuralPartialEq for UserAccountID
Auto Trait Implementations§
impl Freeze for UserAccountID
impl RefUnwindSafe for UserAccountID
impl Send for UserAccountID
impl Sync for UserAccountID
impl Unpin for UserAccountID
impl UnwindSafe for UserAccountID
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