Struct dementia::HomeserverBuilder[][src]

pub struct HomeserverBuilder<Username, Password, AccessToken> { /* fields omitted */ }

Methods

impl HomeserverBuilder<(), (), ()>
[src]

Set the access token

impl<T> HomeserverBuilder<(), T, ()>
[src]

Set the username

impl<T> HomeserverBuilder<T, (), ()>
[src]

Set the password

impl HomeserverBuilder<String, String, ()>
[src]

Log in with the given credentials

Create a new Homeserver object from username an password combination

This does not create a stateful connection. It only constructs a request object and saves the URL of the Homeserver.

  • server_name – The homeserver URL without trailing slash, e. g. https://matrix.org
  • username – The username without homeserver part, e. g. bot
  • password – The password

Panics

If the server does not support or allow simple username and password login, this function panics.

impl<T, R> HomeserverBuilder<T, R, String>
[src]

Auto Trait Implementations

impl<Username, Password, AccessToken> Send for HomeserverBuilder<Username, Password, AccessToken> where
    AccessToken: Send,
    Password: Send,
    Username: Send

impl<Username, Password, AccessToken> Sync for HomeserverBuilder<Username, Password, AccessToken> where
    AccessToken: Sync,
    Password: Sync,
    Username: Sync