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 Box<VoipId>
impl PartialEq<&VoipId> for Box<VoipId>
source§impl PartialEq<&VoipId> for OwnedVoipId
impl PartialEq<&VoipId> for OwnedVoipId
source§impl PartialEq<&str> for Box<VoipId>
impl PartialEq<&str> for Box<VoipId>
source§impl PartialEq<&str> for VoipId
impl PartialEq<&str> for VoipId
source§impl PartialEq<Box<VoipId>> for &VoipId
impl PartialEq<Box<VoipId>> for &VoipId
source§impl PartialEq<Box<VoipId>> for VoipId
impl PartialEq<Box<VoipId>> 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 Box<VoipId>
impl PartialEq<OwnedVoipId> for Box<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 Box<VoipId>
impl PartialEq<String> for Box<VoipId>
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 Box<VoipId>
impl PartialEq<VoipId> for Box<VoipId>
source§impl PartialEq<VoipId> for OwnedVoipId
impl PartialEq<VoipId> for OwnedVoipId
source§impl PartialEq<VoipId> for String
impl PartialEq<VoipId> for String
source§impl PartialEq<VoipId> for str
impl PartialEq<VoipId> for str
source§impl PartialEq for VoipId
impl PartialEq for VoipId
source§impl PartialOrd for VoipId
impl PartialOrd 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 ToOwned for VoipId
impl ToOwned for VoipId
§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.