[−][src]Struct ruma_identifiers::device_id::DeviceId
A Matrix device ID.
Device identifiers in Matrix are completely opaque character sequences. This type alias is provided simply for its semantic value.
Implementations
impl DeviceId[src]
pub fn new() -> Box<Self>[src]
This is supported on
feature="rand" only.Generates a random DeviceId, suitable for assignment to a new device.
pub fn as_str(&self) -> &str[src]
Creates a string slice from this DeviceId.
pub fn as_bytes(&self) -> &[u8][src]
Creates a byte slice from this DeviceId.
Trait Implementations
impl AsRef<str> for DeviceId[src]
impl Debug for DeviceId[src]
impl Display for DeviceId[src]
impl Eq for DeviceId[src]
impl<'_> From<&'_ DeviceId> for Box<DeviceId>[src]
impl<'a> From<&'a str> for &'a DeviceId[src]
impl Hash for DeviceId[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for DeviceId[src]
fn cmp(&self, other: &DeviceId) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<'_> PartialEq<&'_ str> for DeviceId[src]
impl PartialEq<DeviceId> for DeviceId[src]
impl PartialEq<DeviceId> for str[src]
impl<'_> PartialEq<DeviceId> for &'_ str[src]
impl PartialEq<DeviceId> for String[src]
impl PartialEq<String> for DeviceId[src]
impl PartialEq<str> for DeviceId[src]
impl PartialOrd<DeviceId> for DeviceId[src]
fn partial_cmp(&self, other: &DeviceId) -> Option<Ordering>[src]
fn lt(&self, other: &DeviceId) -> bool[src]
fn le(&self, other: &DeviceId) -> bool[src]
fn gt(&self, other: &DeviceId) -> bool[src]
fn ge(&self, other: &DeviceId) -> bool[src]
impl Serialize for DeviceId[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for DeviceId[src]
impl StructuralPartialEq for DeviceId[src]
impl ToOwned for DeviceId[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnwindSafe for DeviceId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,