pub struct VoipId(_);
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, Global>
impl<'de> Deserialize<'de> for Box<VoipId, Global>
source§fn deserialize<D>(
deserializer: D
) -> Result<Box<VoipId, Global>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Box<VoipId, Global>, <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<&str> for VoipId
impl PartialEq<&str> for VoipId
source§impl PartialEq<Box<VoipId, Global>> for &VoipId
impl PartialEq<Box<VoipId, Global>> for &VoipId
source§impl PartialEq<Box<VoipId, Global>> for VoipId
impl PartialEq<Box<VoipId, Global>> for VoipId
source§impl PartialEq<OwnedVoipId> for &VoipId
impl PartialEq<OwnedVoipId> for &VoipId
source§fn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnedVoipId> for VoipId
impl PartialEq<OwnedVoipId> for VoipId
source§fn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<String> for VoipId
impl PartialEq<String> for VoipId
source§impl PartialEq<VoipId> for &str
impl PartialEq<VoipId> for &str
source§impl PartialEq<VoipId> for OwnedVoipId
impl PartialEq<VoipId> for OwnedVoipId
source§impl PartialEq<VoipId> for VoipId
impl PartialEq<VoipId> for VoipId
source§impl PartialEq<VoipId> for str
impl PartialEq<VoipId> for str
source§impl PartialOrd<VoipId> for VoipId
impl PartialOrd<VoipId> for VoipId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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
§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