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<Box<VoipId>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Box<VoipId>, <D as Deserializer<'de>>::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 Serialize for VoipId
impl Serialize for VoipId
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
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) -> <VoipId as ToOwned>::Owned
fn to_owned(&self) -> <VoipId as ToOwned>::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.