pub struct OcmAddress { /* private fields */ }
Expand description
The OCM Address identifies a user or group “at” an OCM Server. The OCM Address contains a server specific Party identifier, a host locating the OCM Server and an optional port. The OCM Address is not a URI as it does not have scheme and the identifier may contain reserved characters.
Implementations§
Source§impl OcmAddress
impl OcmAddress
Sourcepub fn get_identifier(&self) -> &str
pub fn get_identifier(&self) -> &str
Returns the OCM Server specific identifier of a Sending or Receiving Party
Sourcepub fn get_server_url(&self) -> &str
pub fn get_server_url(&self) -> &str
Returns the address of the OCM Server where the Party identified by the OCM Address is located. This can be used to Discover the OCM Server of the Party.
Trait Implementations§
Source§impl Clone for OcmAddress
impl Clone for OcmAddress
Source§fn clone(&self) -> OcmAddress
fn clone(&self) -> OcmAddress
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 OcmAddress
impl Debug for OcmAddress
Source§impl Default for OcmAddress
impl Default for OcmAddress
Source§fn default() -> OcmAddress
fn default() -> OcmAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OcmAddress
impl<'de> Deserialize<'de> for OcmAddress
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 OcmAddress
impl Display for OcmAddress
Source§impl From<OcmAddress> for String
impl From<OcmAddress> for String
Source§fn from(val: OcmAddress) -> Self
fn from(val: OcmAddress) -> Self
Converts to this type from the input type.
Source§impl Ord for OcmAddress
impl Ord for OcmAddress
Source§fn cmp(&self, other: &OcmAddress) -> Ordering
fn cmp(&self, other: &OcmAddress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OcmAddress
impl PartialEq for OcmAddress
Source§impl PartialOrd for OcmAddress
impl PartialOrd for OcmAddress
Source§impl Serialize for OcmAddress
impl Serialize for OcmAddress
Source§impl TryFrom<&str> for OcmAddress
impl TryFrom<&str> for OcmAddress
Source§impl TryFrom<String> for OcmAddress
impl TryFrom<String> for OcmAddress
impl Eq for OcmAddress
impl StructuralPartialEq for OcmAddress
Auto Trait Implementations§
impl Freeze for OcmAddress
impl RefUnwindSafe for OcmAddress
impl Send for OcmAddress
impl Sync for OcmAddress
impl Unpin for OcmAddress
impl UnwindSafe for OcmAddress
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