pub struct GroupPrincipal {
pub group_id: String,
pub group_name: String,
pub type_: GroupPrincipalType,
}
Expand description
GroupPrincipal
JSON schema
{
"type": "object",
"required": [
"groupId",
"groupName",
"type"
],
"properties": {
"groupId": {
"description": "Group ID for the principal.",
"examples": [
"grp-6SM9xrKcqW"
],
"type": "string"
},
"groupName": {
"description": "Name of the group.",
"examples": [
"Marketing team"
],
"type": "string"
},
"type": {
"description": "The type of this principal.",
"type": "string",
"enum": [
"group"
],
"x-tsType": "PrincipalType.Group"
}
},
"additionalProperties": false
}
Fields§
§group_id: String
Group ID for the principal.
group_name: String
Name of the group.
type_: GroupPrincipalType
The type of this principal.
Trait Implementations§
Source§impl Clone for GroupPrincipal
impl Clone for GroupPrincipal
Source§fn clone(&self) -> GroupPrincipal
fn clone(&self) -> GroupPrincipal
Returns a duplicate of the value. Read more
1.0.0 · 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 GroupPrincipal
impl Debug for GroupPrincipal
Source§impl<'de> Deserialize<'de> for GroupPrincipal
impl<'de> Deserialize<'de> for GroupPrincipal
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<&GroupPrincipal> for GroupPrincipal
impl From<&GroupPrincipal> for GroupPrincipal
Source§fn from(value: &GroupPrincipal) -> Self
fn from(value: &GroupPrincipal) -> Self
Converts to this type from the input type.
Source§impl From<GroupPrincipal> for Principal
impl From<GroupPrincipal> for Principal
Source§fn from(value: GroupPrincipal) -> Self
fn from(value: GroupPrincipal) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GroupPrincipal
impl RefUnwindSafe for GroupPrincipal
impl Send for GroupPrincipal
impl Sync for GroupPrincipal
impl Unpin for GroupPrincipal
impl UnwindSafe for GroupPrincipal
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