pub struct AddMemberRequest {
pub email: Option<String>,
pub role: MemberRole,
pub subject: String,
}Expand description
Request to pre-provision a tenant member by identity, before the user’s first login.
JSON schema
{
"description": "Request to pre-provision a tenant member by identity, before the user's\nfirst login.",
"type": "object",
"required": [
"role",
"subject"
],
"properties": {
"email": {
"description": "Optional email for display in the member list.",
"type": [
"string",
"null"
]
},
"role": {
"$ref": "#/components/schemas/MemberRole"
},
"subject": {
"description": "OIDC subject (matches the JWT `sub` claim). The issuer is not settable:\nmembers authenticate through the platform's single configured issuer, so\nthe grant is keyed to that issuer automatically.",
"examples": [
"user@acme.com"
],
"type": "string"
}
}
}Fields§
§email: Option<String>Optional email for display in the member list.
role: MemberRole§subject: StringOIDC subject (matches the JWT sub claim). The issuer is not settable:
members authenticate through the platform’s single configured issuer, so
the grant is keyed to that issuer automatically.
Implementations§
Source§impl AddMemberRequest
impl AddMemberRequest
pub fn builder() -> AddMemberRequest
Trait Implementations§
Source§impl Clone for AddMemberRequest
impl Clone for AddMemberRequest
Source§fn clone(&self) -> AddMemberRequest
fn clone(&self) -> AddMemberRequest
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 AddMemberRequest
impl Debug for AddMemberRequest
Source§impl<'de> Deserialize<'de> for AddMemberRequest
impl<'de> Deserialize<'de> for AddMemberRequest
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<&AddMemberRequest> for AddMemberRequest
impl From<&AddMemberRequest> for AddMemberRequest
Source§fn from(value: &AddMemberRequest) -> Self
fn from(value: &AddMemberRequest) -> Self
Converts to this type from the input type.
Source§impl From<AddMemberRequest> for AddMemberRequest
impl From<AddMemberRequest> for AddMemberRequest
Source§fn from(value: AddMemberRequest) -> Self
fn from(value: AddMemberRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for AddMemberRequest
impl Serialize for AddMemberRequest
Source§impl TryFrom<AddMemberRequest> for AddMemberRequest
impl TryFrom<AddMemberRequest> for AddMemberRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AddMemberRequest) -> Result<Self, ConversionError>
fn try_from(value: AddMemberRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AddMemberRequest
impl RefUnwindSafe for AddMemberRequest
impl Send for AddMemberRequest
impl Sync for AddMemberRequest
impl Unpin for AddMemberRequest
impl UnsafeUnpin for AddMemberRequest
impl UnwindSafe for AddMemberRequest
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