#[non_exhaustive]pub struct JsContactId(/* private fields */);Expand description
JSContact Id data type (RFC 9553 §1.4.1).
A string of 1–255 octets containing only base64url-safe characters
(A-Z, a-z, 0-9, -, _). JSContact Id values are NOT
JMAP Id values: validation of the character set is left to the
caller because this crate has no JMAP dependency.
Modelled as a transparent newtype around String so that wire JSON
for fields typed Id looks identical to a bare String.
Trait Implementations§
Source§impl AsRef<str> for JsContactId
impl AsRef<str> for JsContactId
Source§impl Clone for JsContactId
impl Clone for JsContactId
Source§fn clone(&self) -> JsContactId
fn clone(&self) -> JsContactId
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 JsContactId
impl Debug for JsContactId
Source§impl<'de> Deserialize<'de> for JsContactId
impl<'de> Deserialize<'de> for JsContactId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsContactId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsContactId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for JsContactId
impl From<&str> for JsContactId
Source§fn from(s: &str) -> JsContactId
fn from(s: &str) -> JsContactId
Converts to this type from the input type.
Source§impl From<String> for JsContactId
impl From<String> for JsContactId
Source§fn from(s: String) -> JsContactId
fn from(s: String) -> JsContactId
Converts to this type from the input type.
Source§impl Hash for JsContactId
impl Hash for JsContactId
Source§impl PartialEq for JsContactId
impl PartialEq for JsContactId
Source§fn eq(&self, other: &JsContactId) -> bool
fn eq(&self, other: &JsContactId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for JsContactId
impl Serialize for JsContactId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for JsContactId
impl StructuralPartialEq for JsContactId
Auto Trait Implementations§
impl Freeze for JsContactId
impl RefUnwindSafe for JsContactId
impl Send for JsContactId
impl Sync for JsContactId
impl Unpin for JsContactId
impl UnsafeUnpin for JsContactId
impl UnwindSafe for JsContactId
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