pub struct TenantMember {
pub email: Option<String>,
pub provider: String,
pub role: Role,
pub subject: String,
pub user_id: UserId,
}Expand description
A member of a tenant, as returned by the user-management API.
JSON schema
{
"description": "A member of a tenant, as returned by the user-management API.",
"type": "object",
"required": [
"provider",
"role",
"subject",
"user_id"
],
"properties": {
"email": {
"description": "Email, if the identity provider supplied one.",
"type": [
"string",
"null"
]
},
"provider": {
"description": "OIDC issuer the user authenticates through.",
"type": "string"
},
"role": {
"$ref": "#/components/schemas/Role"
},
"subject": {
"description": "OIDC subject.",
"type": "string"
},
"user_id": {
"$ref": "#/components/schemas/UserId"
}
}
}Fields§
§email: Option<String>Email, if the identity provider supplied one.
provider: StringOIDC issuer the user authenticates through.
role: Role§subject: StringOIDC subject.
user_id: UserIdImplementations§
Source§impl TenantMember
impl TenantMember
pub fn builder() -> TenantMember
Trait Implementations§
Source§impl Clone for TenantMember
impl Clone for TenantMember
Source§fn clone(&self) -> TenantMember
fn clone(&self) -> TenantMember
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TenantMember
impl Debug for TenantMember
Source§impl<'de> Deserialize<'de> for TenantMember
impl<'de> Deserialize<'de> for TenantMember
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TenantMember> for TenantMember
impl From<&TenantMember> for TenantMember
Source§fn from(value: &TenantMember) -> Self
fn from(value: &TenantMember) -> Self
Converts to this type from the input type.
Source§impl From<TenantMember> for TenantMember
impl From<TenantMember> for TenantMember
Source§fn from(value: TenantMember) -> Self
fn from(value: TenantMember) -> Self
Converts to this type from the input type.
Source§impl Serialize for TenantMember
impl Serialize for TenantMember
Source§impl TryFrom<TenantMember> for TenantMember
impl TryFrom<TenantMember> for TenantMember
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TenantMember) -> Result<Self, ConversionError>
fn try_from(value: TenantMember) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TenantMember
impl RefUnwindSafe for TenantMember
impl Send for TenantMember
impl Sync for TenantMember
impl Unpin for TenantMember
impl UnsafeUnpin for TenantMember
impl UnwindSafe for TenantMember
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