[][src]Struct spectacles_model::guild::AddMemberOptions

pub struct AddMemberOptions { /* fields omitted */ }

Options for adding a member to a guild.

Methods

impl AddMemberOptions[src]

pub fn access_token(self, token: String) -> Self[src]

Sets the access token of the user which you want to add.

pub fn nickname(self, name: &str) -> Self[src]

Sets the nickname for the newly created user.

pub fn roles(self, rls: Vec<Snowflake>) -> Self[src]

Sets the roles that the user should have upon joining the guild.

pub fn muted(self, mute: bool) -> Self[src]

Sets the user's muted status when joining the guild.

pub fn deaf(self, opt: bool) -> Self[src]

Sets the deaf status of the user when joining the guild.

Trait Implementations

impl Clone for AddMemberOptions[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for AddMemberOptions[src]

impl Debug for AddMemberOptions[src]

impl Serialize for AddMemberOptions[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]