pub struct InboxId(/* private fields */);Expand description
A unique identifier for an Inbox. https://gitlab.com/relay-mail/docs/-/wikis/Architecture/Identity#inbox
Implementations§
Source§impl InboxId
impl InboxId
Sourcepub fn parse(input: impl AsRef<str>) -> Result<InboxId, IdentityError>
pub fn parse(input: impl AsRef<str>) -> Result<InboxId, IdentityError>
Parse an InboxId from a string according to the identity rules. https://gitlab.com/relay-mail/docs/-/wikis/Architecture/Identity#inbox
§Example
let inbox_id = relay_core::id::InboxId::parse("Work").unwrap();
assert_eq!(inbox_id.canonical(), "work");Trait Implementations§
Source§impl<'de> Deserialize<'de> for InboxId
impl<'de> Deserialize<'de> for InboxId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InboxId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InboxId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InboxId
impl Serialize for InboxId
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 InboxId
impl StructuralPartialEq for InboxId
Auto Trait Implementations§
impl Freeze for InboxId
impl RefUnwindSafe for InboxId
impl Send for InboxId
impl Sync for InboxId
impl Unpin for InboxId
impl UnwindSafe for InboxId
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