pub struct TenantInfo {
pub id: TenantId,
pub initial_provider: String,
pub name: String,
}Expand description
A tenant, as returned by the owner-only tenant endpoints.
JSON schema
{
"description": "A tenant, as returned by the owner-only tenant endpoints.",
"type": "object",
"required": [
"id",
"initial_provider",
"name"
],
"properties": {
"id": {
"$ref": "#/components/schemas/TenantId"
},
"initial_provider": {
"description": "The OIDC issuer this tenant was first provisioned under. Provenance\nonly: a tenant is resolved by name, so this does not affect which tenant\na login reaches.",
"type": "string"
},
"name": {
"type": "string"
}
}
}Fields§
§id: TenantId§initial_provider: StringThe OIDC issuer this tenant was first provisioned under. Provenance only: a tenant is resolved by name, so this does not affect which tenant a login reaches.
name: StringImplementations§
Source§impl TenantInfo
impl TenantInfo
pub fn builder() -> TenantInfo
Trait Implementations§
Source§impl Clone for TenantInfo
impl Clone for TenantInfo
Source§fn clone(&self) -> TenantInfo
fn clone(&self) -> TenantInfo
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 TenantInfo
impl Debug for TenantInfo
Source§impl<'de> Deserialize<'de> for TenantInfo
impl<'de> Deserialize<'de> for TenantInfo
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<&TenantInfo> for TenantInfo
impl From<&TenantInfo> for TenantInfo
Source§fn from(value: &TenantInfo) -> Self
fn from(value: &TenantInfo) -> Self
Converts to this type from the input type.
Source§impl From<TenantInfo> for TenantInfo
impl From<TenantInfo> for TenantInfo
Source§fn from(value: TenantInfo) -> Self
fn from(value: TenantInfo) -> Self
Converts to this type from the input type.
Source§impl Serialize for TenantInfo
impl Serialize for TenantInfo
Source§impl TryFrom<TenantInfo> for TenantInfo
impl TryFrom<TenantInfo> for TenantInfo
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TenantInfo) -> Result<Self, ConversionError>
fn try_from(value: TenantInfo) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TenantInfo
impl RefUnwindSafe for TenantInfo
impl Send for TenantInfo
impl Sync for TenantInfo
impl Unpin for TenantInfo
impl UnsafeUnpin for TenantInfo
impl UnwindSafe for TenantInfo
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