[][src]Struct smalld::SmallDBuilder

pub struct SmallDBuilder { /* fields omitted */ }

Builder to configure and create a SmallD.

Implementations

impl SmallDBuilder[src]

pub fn new() -> Self[src]

Creates a SmallDBuilder configured with useful defaults. This includes a token retrieved from the environment variable SMALLD_TOKEN, all unprivileged gateway intents, and to use v8 of the Discord API.

pub fn token<S: Into<String>>(&mut self, s: S) -> &mut Self[src]

pub fn base_url<S: Into<String>>(&mut self, s: S) -> &mut Self[src]

pub fn intents<M: Into<u16>>(&mut self, intents: M) -> &mut Self[src]

pub fn build(&self) -> Result<SmallD, Error>[src]

Trait Implementations

impl Default for SmallDBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,