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