pub struct GetMeResponse {
pub display_name: String,
pub id: String,
pub identities: Vec<GetMeResponseIdentitiesItem>,
pub role: GetMeResponseRole,
pub username: String,
}Expand description
GetMeResponse
JSON schema
{
"type": "object",
"required": [
"displayName",
"id",
"identities",
"role",
"username"
],
"properties": {
"displayName": {
"type": "string"
},
"id": {
"type": "string"
},
"identities": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"providerDisplayName",
"providerInstanceId",
"providerKind",
"username"
],
"properties": {
"id": {
"type": "string"
},
"providerDisplayName": {
"type": "string"
},
"providerInstanceId": {
"type": "string"
},
"providerKind": {
"type": "string"
},
"username": {
"type": "string"
}
}
}
},
"role": {
"type": "string",
"enum": [
"user",
"admin"
]
},
"username": {
"type": "string"
}
}
}Fields§
§display_name: String§id: String§identities: Vec<GetMeResponseIdentitiesItem>§role: GetMeResponseRole§username: StringImplementations§
Source§impl GetMeResponse
impl GetMeResponse
pub fn builder() -> GetMeResponse
Trait Implementations§
Source§impl Clone for GetMeResponse
impl Clone for GetMeResponse
Source§fn clone(&self) -> GetMeResponse
fn clone(&self) -> GetMeResponse
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 GetMeResponse
impl Debug for GetMeResponse
Source§impl<'de> Deserialize<'de> for GetMeResponse
impl<'de> Deserialize<'de> for GetMeResponse
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<&GetMeResponse> for GetMeResponse
impl From<&GetMeResponse> for GetMeResponse
Source§fn from(value: &GetMeResponse) -> Self
fn from(value: &GetMeResponse) -> Self
Converts to this type from the input type.
Source§impl From<GetMeResponse> for GetMeResponse
impl From<GetMeResponse> for GetMeResponse
Source§fn from(value: GetMeResponse) -> Self
fn from(value: GetMeResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for GetMeResponse
impl Serialize for GetMeResponse
Source§impl TryFrom<GetMeResponse> for GetMeResponse
impl TryFrom<GetMeResponse> for GetMeResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetMeResponse) -> Result<Self, ConversionError>
fn try_from(value: GetMeResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetMeResponse
impl RefUnwindSafe for GetMeResponse
impl Send for GetMeResponse
impl Sync for GetMeResponse
impl Unpin for GetMeResponse
impl UnsafeUnpin for GetMeResponse
impl UnwindSafe for GetMeResponse
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