pub struct UserGroupsResponse {
pub groups: Vec<String>,
pub user_id: Uuid,
}Expand description
Response DTO for a user’s group memberships.
JSON schema
{
"description": "Response DTO for a user's group memberships.",
"type": "object",
"required": [
"groups",
"user_id"
],
"properties": {
"groups": {
"description": "Groups the user belongs to, sorted by name.",
"type": "array",
"items": {
"type": "string"
}
},
"user_id": {
"description": "User ID.",
"type": "string",
"format": "uuid"
}
}
}
```ignore
</details>Fields§
§groups: Vec<String>Groups the user belongs to, sorted by name.
user_id: UuidUser ID.
Implementations§
Source§impl UserGroupsResponse
impl UserGroupsResponse
pub fn builder() -> UserGroupsResponse
Trait Implementations§
Source§impl Clone for UserGroupsResponse
impl Clone for UserGroupsResponse
Source§impl Debug for UserGroupsResponse
impl Debug for UserGroupsResponse
Source§impl<'de> Deserialize<'de> for UserGroupsResponse
impl<'de> Deserialize<'de> for UserGroupsResponse
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<UserGroupsResponse> for UserGroupsResponse
impl From<UserGroupsResponse> for UserGroupsResponse
Source§fn from(value: UserGroupsResponse) -> Self
fn from(value: UserGroupsResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for UserGroupsResponse
impl Serialize for UserGroupsResponse
Source§impl TryFrom<UserGroupsResponse> for UserGroupsResponse
impl TryFrom<UserGroupsResponse> for UserGroupsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UserGroupsResponse) -> Result<Self, ConversionError>
fn try_from(value: UserGroupsResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UserGroupsResponse
impl RefUnwindSafe for UserGroupsResponse
impl Send for UserGroupsResponse
impl Sync for UserGroupsResponse
impl Unpin for UserGroupsResponse
impl UnsafeUnpin for UserGroupsResponse
impl UnwindSafe for UserGroupsResponse
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