Struct discord_flows::model::UserId
source · pub struct UserId(pub u64);
Expand description
An identifier for a User
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for UserId
impl<'de> Deserialize<'de> for UserId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<UserId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<UserId, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a CurrentUser> for UserId
impl<'a> From<&'a CurrentUser> for UserId
source§fn from(current_user: &CurrentUser) -> UserId
fn from(current_user: &CurrentUser) -> UserId
Gets the Id of a CurrentUser
struct.
source§impl<'a> From<&'a UserId> for CommandPermissionId
impl<'a> From<&'a UserId> for CommandPermissionId
source§fn from(id: &UserId) -> CommandPermissionId
fn from(id: &UserId) -> CommandPermissionId
Converts to this type from the input type.
source§impl From<CommandPermissionId> for UserId
impl From<CommandPermissionId> for UserId
source§fn from(id: CommandPermissionId) -> UserId
fn from(id: CommandPermissionId) -> UserId
Converts to this type from the input type.
source§impl From<CurrentUser> for UserId
impl From<CurrentUser> for UserId
source§fn from(current_user: CurrentUser) -> UserId
fn from(current_user: CurrentUser) -> UserId
Gets the Id of a CurrentUser
struct.
source§impl From<UserId> for CommandPermissionId
impl From<UserId> for CommandPermissionId
source§fn from(id: UserId) -> CommandPermissionId
fn from(id: UserId) -> CommandPermissionId
Converts to this type from the input type.
source§impl Ord for UserId
impl Ord for UserId
source§impl PartialEq<UserId> for UserId
impl PartialEq<UserId> for UserId
source§impl PartialOrd<UserId> for UserId
impl PartialOrd<UserId> for UserId
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 UserId
impl Serialize for UserId
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
impl Copy for UserId
impl Eq for UserId
impl StructuralEq for UserId
impl StructuralPartialEq for UserId
Auto Trait Implementations§
impl RefUnwindSafe for UserId
impl Send for UserId
impl Sync for UserId
impl Unpin for UserId
impl UnwindSafe for UserId
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