Struct serenity::model::id::UserId[][src]

pub struct UserId(pub u64);

An identifier for a User

Methods

impl UserId
[src]

Retrieves the time that the Id was created at.

impl UserId
[src]

Creates a direct message channel between the current user and the user. This can also retrieve the channel if one already exists.

Search the cache for the user with the Id.

Gets a user by its Id over the REST API.

Note: The current user must be a bot user.

Trait Implementations

impl Copy for UserId
[src]

impl Clone for UserId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for UserId
[src]

Returns the "default value" for a type. Read more

impl Debug for UserId
[src]

Formats the value using the given formatter. Read more

impl Eq for UserId
[src]

impl Hash for UserId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for UserId
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for UserId
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl AsRef<UserId> for UserId
[src]

Important traits for &'a mut R

Performs the conversion.

impl From<u64> for UserId
[src]

Performs the conversion.

impl PartialEq for UserId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<u64> for UserId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for UserId
[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for UserId
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Mentionable for UserId
[src]

Creates a mentionable string, that will be able to notify and/or create a link to the item. Read more

impl FromStr for UserId
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl From<CurrentUser> for UserId
[src]

Gets the Id of a CurrentUser struct.

impl<'a> From<&'a CurrentUser> for UserId
[src]

Gets the Id of a CurrentUser struct.

impl From<Member> for UserId
[src]

Gets the Id of a Member.

impl<'a> From<&'a Member> for UserId
[src]

Gets the Id of a Member.

impl From<User> for UserId
[src]

Gets the Id of a User.

impl<'a> From<&'a User> for UserId
[src]

Gets the Id of a User.

Auto Trait Implementations

impl Send for UserId

impl Sync for UserId