Struct telexide_fork::client::ClientBuilder[][src]

pub struct ClientBuilder { /* fields omitted */ }
Expand description

A builder for the Client object to make customisation easier

Implementations

Creates a bare builder

sets the webhook url for the Client to listen to

Sets the framework for your bot to use, please use the create_framework macro for creating it

Sets the token to be used in authorizing the API requests of your bot

Sets the custom hyper client for the APIClient to use

Sets the custom API client

Set the list of update types you want your update handlers to handle

Add an update type to the list of update types you want your update handlers to handle

Remove an update type from the list of update types you want your update handlers to handle

Adds an EventHandlerFunc function for handling incoming updates

Adds an RawEventHandlerFunc function for handling incoming updates

Creates the Client object from the settings set in the ClientBuilder object

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more