[−][src]Struct misskey_api::model::id::Id
Implementations
impl<T: ?Sized> Id<T>
[src]
pub fn as_aid(&self) -> &Aid
[src]
This is supported on crate feature
aid
only.pub fn as_meid(&self) -> &Meid
[src]
This is supported on crate feature
meid
only.pub fn as_ulid(&self) -> &Ulid
[src]
This is supported on crate feature
ulid
only.pub fn as_object_id(&self) -> &ObjectId
[src]
This is supported on crate feature
objectid
only.impl<T> Id<T>
[src]
Trait Implementations
impl<T> Clone for Id<T>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for Id<T>
[src]
impl<T> Debug for Id<T>
[src]
impl<'de, T> Deserialize<'de> for Id<T>
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<T> Display for Id<T>
[src]
impl<E: Entity> EntityRef<E> for Id<E>
[src]
pub fn entity_ref(&self) -> Id<E>
[src]
impl<E: Entity, '_> EntityRef<E> for &'_ Id<E>
[src]
pub fn entity_ref(&self) -> Id<E>
[src]
impl<T> Eq for Id<T>
[src]
impl<T: ?Sized> From<Id<T>> for Aid
[src]
impl<T> FromStr for Id<T>
[src]
type Err = ParseIdError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Id<T>, Self::Err>
[src]
impl<T> Hash for Id<T>
[src]
pub fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Ord for Id<T>
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T> PartialEq<Id<T>> for Id<T>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> PartialOrd<Id<T>> for Id<T>
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Serialize for Id<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Id<T>
[src]
impl<T: ?Sized> Send for Id<T>
[src]
impl<T: ?Sized> Sync for Id<T>
[src]
impl<T: ?Sized> Unpin for Id<T>
[src]
impl<T: ?Sized> UnwindSafe for Id<T>
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,