pub struct NewRole {
pub id: String,
pub role: Role,
}Expand description
New role response
Fields§
§id: StringID of the role
role: RoleNew role
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewRole
impl<'de> Deserialize<'de> for NewRole
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
Auto Trait Implementations§
impl Freeze for NewRole
impl RefUnwindSafe for NewRole
impl Send for NewRole
impl Sync for NewRole
impl Unpin for NewRole
impl UnwindSafe for NewRole
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