pub struct SsoLoginBuilder<F> { /* private fields */ }sso-login only.Expand description
Builder type used to configure optional settings for logging in via SSO.
Created with MatrixAuth::login_sso. Finalized with
.send().
Implementations§
Source§impl<F, Fut> SsoLoginBuilder<F>
impl<F, Fut> SsoLoginBuilder<F>
Sourcepub fn device_id(self, value: &str) -> Self
pub fn device_id(self, value: &str) -> Self
Set the device ID.
The device ID is a unique ID that will be associated with this session. If not set, the homeserver will create one. Can be an existing device ID from a previous login call. Note that this should be done only if the client also holds the corresponding encryption keys.
Sourcepub fn initial_device_display_name(self, value: &str) -> Self
pub fn initial_device_display_name(self, value: &str) -> Self
Set the initial device display name.
The device display name is the public name that will be associated with the device ID. Only necessary the first time you login with this device ID. It can be changed later.
Sourcepub fn server_builder(self, builder: LocalServerBuilder) -> Self
pub fn server_builder(self, builder: LocalServerBuilder) -> Self
Customize the settings used to construct the server where the end-user will be redirected.
If this is not set, the default settings of LocalServerBuilder will
be used.
Sourcepub fn identity_provider_id(self, value: &str) -> Self
pub fn identity_provider_id(self, value: &str) -> Self
Set the ID of the identity provider to log in with.
Sourcepub fn request_refresh_token(self) -> Self
pub fn request_refresh_token(self) -> Self
Advertise support for refreshing access tokens.
By default, the Client won’t handle refreshing access tokens, so
Client::refresh_access_token() or
MatrixAuth::refresh_access_token() needs to be called
manually.
This behavior can be changed by calling
handle_refresh_tokens() when building the Client.
Note that refreshing access tokens might not be supported or might be enforced by the homeserver regardless of this setting.
Trait Implementations§
Source§impl<F, Fut> IntoFuture for SsoLoginBuilder<F>
impl<F, Fut> IntoFuture for SsoLoginBuilder<F>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SsoLoginBuilder<F> as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SsoLoginBuilder<F> as IntoFuture>::Output> + Send>>
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Auto Trait Implementations§
impl<F> Freeze for SsoLoginBuilder<F>where
F: Freeze,
impl<F> !RefUnwindSafe for SsoLoginBuilder<F>
impl<F> Send for SsoLoginBuilder<F>where
F: Send,
impl<F> Sync for SsoLoginBuilder<F>where
F: Sync,
impl<F> Unpin for SsoLoginBuilder<F>where
F: Unpin,
impl<F> !UnwindSafe for SsoLoginBuilder<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read moreSource§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more