pub enum GlobalIdType {
Message,
Person,
Room,
Team,
AttachmentAction,
Unknown,
}Expand description
This represents the type of an ID produced by the API, to prevent (for example) message IDs being used for a room ID.
Variants§
Message
This GlobalId represents the ID of a message
Person
Corresponds to the ID of a person
Room
Corresponds to the ID of a room
Team
Corresponds to the ID of a team
AttachmentAction
Retrieves a specific attachment
Unknown
This GlobalId represents the ID of something not currently recognised, any API requests
with this GlobalId will produce an error.
Trait Implementations§
Source§impl Clone for GlobalIdType
impl Clone for GlobalIdType
impl Copy for GlobalIdType
Source§impl Debug for GlobalIdType
impl Debug for GlobalIdType
Source§impl Display for GlobalIdType
impl Display for GlobalIdType
impl Eq for GlobalIdType
Source§impl From<ActivityType> for GlobalIdType
impl From<ActivityType> for GlobalIdType
Source§fn from(a: ActivityType) -> Self
fn from(a: ActivityType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GlobalIdType
impl PartialEq for GlobalIdType
impl StructuralPartialEq for GlobalIdType
Auto Trait Implementations§
impl Freeze for GlobalIdType
impl RefUnwindSafe for GlobalIdType
impl Send for GlobalIdType
impl Sync for GlobalIdType
impl Unpin for GlobalIdType
impl UnsafeUnpin for GlobalIdType
impl UnwindSafe for GlobalIdType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.