Struct serenity::model::guild::Ban[][src]

pub struct Ban {
    pub reason: Option<String>,
    pub user: User,
}

A representation of a banning of a user.

Fields

The reason given for this ban.

The user that was banned.

Trait Implementations

impl Clone for Ban
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Ban
[src]

Formats the value using the given formatter. Read more

impl Eq for Ban
[src]

impl PartialEq for Ban
[src]

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

This method tests for !=.

impl Hash for Ban
[src]

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

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

Auto Trait Implementations

impl Send for Ban

impl Sync for Ban