pub struct RecipientId(/* private fields */);Implementations§
Source§impl RecipientId
impl RecipientId
Sourcepub fn messaging(
surface: &ConversationSurface,
) -> Result<Self, RecipientIdError>
pub fn messaging( surface: &ConversationSurface, ) -> Result<Self, RecipientIdError>
Convert a validated Messaging surface without losing audience or lane.
pub fn node(node_type: &str, node_id: &str) -> Result<Self, RecipientIdError>
pub fn as_str(&self) -> &str
pub fn messaging_surface(&self) -> Option<ConversationSurface>
Sourcepub fn messaging_base(&self) -> Option<Self>
pub fn messaging_base(&self) -> Option<Self>
The base authorization route excludes a provider topic/lane. This does not change the recipient used for the actual delivery.
pub fn node_address(&self) -> Option<(&str, String)>
Trait Implementations§
Source§impl Clone for RecipientId
impl Clone for RecipientId
Source§fn clone(&self) -> RecipientId
fn clone(&self) -> RecipientId
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 RecipientId
impl Debug for RecipientId
Source§impl<'de> Deserialize<'de> for RecipientId
impl<'de> Deserialize<'de> for RecipientId
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
Source§impl Display for RecipientId
impl Display for RecipientId
impl Eq for RecipientId
Source§impl FromStr for RecipientId
impl FromStr for RecipientId
Source§impl Hash for RecipientId
impl Hash for RecipientId
Source§impl PartialEq for RecipientId
impl PartialEq for RecipientId
Source§impl Serialize for RecipientId
impl Serialize for RecipientId
impl StructuralPartialEq for RecipientId
Auto Trait Implementations§
impl Freeze for RecipientId
impl RefUnwindSafe for RecipientId
impl Send for RecipientId
impl Sync for RecipientId
impl Unpin for RecipientId
impl UnsafeUnpin for RecipientId
impl UnwindSafe for RecipientId
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