Struct ruma_common::VoipId
source · pub struct VoipId(/* private fields */);
Expand description
A VoIP identifier.
VoIP IDs in Matrix are opaque strings. This type is provided simply for its semantic value.
You can create one from a string (using VoipId::parse()
) but the recommended way is to
use VoipId::new()
to generate a random one. If that function is not available for you,
you need to activate this crate’s rand
Cargo feature.
Implementations§
Trait Implementations§
source§impl AsRef<VoipId> for OwnedVoipId
impl AsRef<VoipId> for OwnedVoipId
source§impl Borrow<VoipId> for OwnedVoipId
impl Borrow<VoipId> for OwnedVoipId
source§impl<'de> Deserialize<'de> for Box<VoipId>
impl<'de> Deserialize<'de> for Box<VoipId>
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 From<&VoipId> for OwnedVoipId
impl From<&VoipId> for OwnedVoipId
source§fn from(id: &VoipId) -> OwnedVoipId
fn from(id: &VoipId) -> OwnedVoipId
Converts to this type from the input type.
source§impl PartialEq<&VoipId> for OwnedVoipId
impl PartialEq<&VoipId> for OwnedVoipId
source§impl PartialEq<OwnedVoipId> for &VoipId
impl PartialEq<OwnedVoipId> for &VoipId
source§impl PartialEq<OwnedVoipId> for VoipId
impl PartialEq<OwnedVoipId> for VoipId
source§impl PartialEq<VoipId> for OwnedVoipId
impl PartialEq<VoipId> for OwnedVoipId
source§impl PartialOrd for VoipId
impl PartialOrd for VoipId
source§impl ToOwned for VoipId
impl ToOwned for VoipId
source§type Owned = OwnedVoipId
type Owned = OwnedVoipId
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for VoipId
impl StructuralPartialEq for VoipId
Auto Trait Implementations§
impl Freeze for VoipId
impl RefUnwindSafe for VoipId
impl Send for VoipId
impl !Sized for VoipId
impl Sync for VoipId
impl Unpin for VoipId
impl UnwindSafe for VoipId
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.