pub struct ChangeRole {
pub email: String,
pub new_role: WorkspaceUserRole,
}
Expand description
Parameters for changing a workspace user role.
JSON schema
{
"description": "Parameters for changing a workspace user role.",
"type": "object",
"required": [
"email",
"newRole"
],
"properties": {
"email": {
"description": "Email of the user.",
"examples": [
"hello@coda.io"
],
"type": "string"
},
"newRole": {
"$ref": "#/components/schemas/WorkspaceUserRole"
}
},
"additionalProperties": false,
"x-schema-name": "ChangeRole"
}
Fields§
§email: String
Email of the user.
new_role: WorkspaceUserRole
Trait Implementations§
Source§impl Clone for ChangeRole
impl Clone for ChangeRole
Source§fn clone(&self) -> ChangeRole
fn clone(&self) -> ChangeRole
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 ChangeRole
impl Debug for ChangeRole
Source§impl<'de> Deserialize<'de> for ChangeRole
impl<'de> Deserialize<'de> for ChangeRole
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<&ChangeRole> for ChangeRole
impl From<&ChangeRole> for ChangeRole
Source§fn from(value: &ChangeRole) -> Self
fn from(value: &ChangeRole) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChangeRole
impl RefUnwindSafe for ChangeRole
impl Send for ChangeRole
impl Sync for ChangeRole
impl Unpin for ChangeRole
impl UnwindSafe for ChangeRole
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