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<Self, Err>
pub fn parse(input: impl AsRef<str>) -> Result<Self, Err>
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<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
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