pub struct UpdateUserOrgRoleData {
pub organization_id: Uuid,
pub role: i32,
pub user_id: Option<Option<Uuid>>,
}
Fields§
§organization_id: Uuid
The id of the organization to update the user for.
role: i32
Either 0 (user), 1 (admin), or 2 (owner). If not provided, the current role will be used. The auth’ed user must have a role greater than or equal to the role being assigned.
user_id: Option<Option<Uuid>>
The id of the user to update, if not provided, the auth’ed user will be updated. If provided, the role of the auth’ed user or api key must be an admin (1) or owner (2) of the organization.
Implementations§
Source§impl UpdateUserOrgRoleData
impl UpdateUserOrgRoleData
pub fn new(organization_id: Uuid, role: i32) -> UpdateUserOrgRoleData
Trait Implementations§
Source§impl Clone for UpdateUserOrgRoleData
impl Clone for UpdateUserOrgRoleData
Source§fn clone(&self) -> UpdateUserOrgRoleData
fn clone(&self) -> UpdateUserOrgRoleData
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 UpdateUserOrgRoleData
impl Debug for UpdateUserOrgRoleData
Source§impl Default for UpdateUserOrgRoleData
impl Default for UpdateUserOrgRoleData
Source§fn default() -> UpdateUserOrgRoleData
fn default() -> UpdateUserOrgRoleData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateUserOrgRoleData
impl<'de> Deserialize<'de> for UpdateUserOrgRoleData
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 PartialEq for UpdateUserOrgRoleData
impl PartialEq for UpdateUserOrgRoleData
Source§impl Serialize for UpdateUserOrgRoleData
impl Serialize for UpdateUserOrgRoleData
impl StructuralPartialEq for UpdateUserOrgRoleData
Auto Trait Implementations§
impl Freeze for UpdateUserOrgRoleData
impl RefUnwindSafe for UpdateUserOrgRoleData
impl Send for UpdateUserOrgRoleData
impl Sync for UpdateUserOrgRoleData
impl Unpin for UpdateUserOrgRoleData
impl UnwindSafe for UpdateUserOrgRoleData
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