Struct matrix_sdk::ruma::api::client::session::get_login_types::v3::IdentityProvider
#[non_exhaustive]pub struct IdentityProvider {
pub id: String,
pub name: String,
pub icon: Option<OwnedMxcUri>,
pub brand: Option<IdentityProviderBrand>,
}
Available on crate feature
api
and (crate features client
or server
) only.Expand description
An SSO login identity provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
The ID of the provider.
name: String
The display name of the provider.
icon: Option<OwnedMxcUri>
The icon for the provider.
brand: Option<IdentityProviderBrand>
The brand identifier for the provider.
Implementations§
§impl IdentityProvider
impl IdentityProvider
pub fn new(id: String, name: String) -> IdentityProvider
pub fn new(id: String, name: String) -> IdentityProvider
Creates an IdentityProvider
with the given id
and name
.
Trait Implementations§
§impl Clone for IdentityProvider
impl Clone for IdentityProvider
§fn clone(&self) -> IdentityProvider
fn clone(&self) -> IdentityProvider
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IdentityProvider
impl Debug for IdentityProvider
§impl<'de> Deserialize<'de> for IdentityProvider
impl<'de> Deserialize<'de> for IdentityProvider
§fn deserialize<__D>(
__deserializer: __D
) -> Result<IdentityProvider, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<IdentityProvider, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for IdentityProvider
impl Serialize for IdentityProvider
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for IdentityProvider
impl Send for IdentityProvider
impl Sync for IdentityProvider
impl Unpin for IdentityProvider
impl UnwindSafe for IdentityProvider
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
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>