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

pub struct UserId(pub u64);

An identifier for a User

Methods

impl UserId
[src]

[src]

Retrieves the time that the Id was created at.

impl UserId
[src]

[src]

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

[src]

Search the cache for the user with the Id.

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for UserId
[src]

[src]

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

impl Debug for UserId
[src]

[src]

Formats the value using the given formatter.

impl Eq for UserId
[src]

impl Hash for UserId
[src]

[src]

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

1.3.0
[src]

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

impl PartialOrd for UserId
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl AsRef<UserId> for UserId
[src]

[src]

Performs the conversion.

impl From<u64> for UserId
[src]

[src]

Performs the conversion.

impl PartialEq for UserId
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<u64> for UserId
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Display for UserId
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Mentionable for UserId
[src]

[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.

[src]

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

impl From<CurrentUser> for UserId
[src]

[src]

Gets the Id of a CurrentUser struct.

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

[src]

Gets the Id of a CurrentUser struct.

impl From<Member> for UserId
[src]

[src]

Gets the Id of a Member.

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

[src]

Gets the Id of a Member.

impl From<User> for UserId
[src]

[src]

Gets the Id of a User.

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

[src]

Gets the Id of a User.