[][src]Trait serenity::model::guild::BanOptions

pub trait BanOptions {
    fn dmd(&self) -> u8 { ... }
fn reason(&self) -> &str { ... } }

A trait for allowing both u8 or &str or (u8, &str) to be passed into the ban methods in Guild and Member.

Provided methods

fn dmd(&self) -> u8

fn reason(&self) -> &str

Loading content...

Implementations on Foreign Types

impl BanOptions for u8[src]

impl BanOptions for str[src]

impl<'a> BanOptions for &'a str[src]

impl BanOptions for String[src]

impl<'a> BanOptions for (u8, &'a str)[src]

impl BanOptions for (u8, String)[src]

Loading content...

Implementors

Loading content...