pub struct OrganizationUser {Show 15 fields
pub id: Option<Uuid>,
pub organization_id: Option<Uuid>,
pub user_id: Option<Uuid>,
pub email: Option<String>,
pub key: Option<String>,
pub reset_password_key: Option<String>,
pub status: Option<OrganizationUserStatusType>,
pub status_new: Option<OrganizationUserStatusTypeNew>,
pub type: Option<OrganizationUserType>,
pub external_id: Option<String>,
pub creation_date: Option<String>,
pub revision_date: Option<String>,
pub permissions: Option<String>,
pub access_secrets_manager: Option<bool>,
pub revocation_reason: Option<RevocationReason>,
}Expand description
OrganizationUser : An association table between one Bit.Core.Entities.User and one Bit.Core.AdminConsole.Entities.Organization, representing that user’s membership in the organization. "Member" refers to the OrganizationUser object.
Fields§
§id: Option<Uuid>A unique random identifier.
organization_id: Option<Uuid>The ID of the Organization that the user is a member of.
user_id: Option<Uuid>The ID of the User that is the member. This is NULL if the Status is Invited (or Invited and then Revoked), because it is not linked to a specific User yet.
email: Option<String>The email address of the user invited to the organization. This is NULL if the Status is not Invited (or Invited and then Revoked), because in that case the OrganizationUser is linked to a User and the email is stored on the User object.
key: Option<String>The Organization symmetric key encrypted with the User’s public key. NULL if the user is not in a Confirmed (or Confirmed and then Revoked) status.
reset_password_key: Option<String>The User’s symmetric key encrypted with the Organization’s public key. NULL if the OrganizationUser is not enrolled in account recovery.
status: Option<OrganizationUserStatusType>§status_new: Option<OrganizationUserStatusTypeNew>§type: Option<OrganizationUserType>§external_id: Option<String>An ID used to identify the OrganizationUser with an external directory service. Used by Directory Connector and SCIM.
creation_date: Option<String>The date the OrganizationUser was created, i.e. when the User was first invited to the Organization.
revision_date: Option<String>The last date the OrganizationUser entry was updated.
permissions: Option<String>A json blob representing the Bit.Core.Models.Data.Permissions of the OrganizationUser if they are a Custom user role (i.e. the Bit.Core.Enums.OrganizationUserType is Custom). MAY be NULL if they are not a custom user, but this is not guaranteed; do not use this to determine their role.
access_secrets_manager: Option<bool>True if the User has access to Secrets Manager for this Organization, false otherwise.
revocation_reason: Option<RevocationReason>Implementations§
Source§impl OrganizationUser
impl OrganizationUser
Sourcepub fn new() -> OrganizationUser
pub fn new() -> OrganizationUser
An association table between one Bit.Core.Entities.User and one Bit.Core.AdminConsole.Entities.Organization, representing that user’s membership in the organization. "Member" refers to the OrganizationUser object.
Trait Implementations§
Source§impl Clone for OrganizationUser
impl Clone for OrganizationUser
Source§fn clone(&self) -> OrganizationUser
fn clone(&self) -> OrganizationUser
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrganizationUser
impl Debug for OrganizationUser
Source§impl Default for OrganizationUser
impl Default for OrganizationUser
Source§fn default() -> OrganizationUser
fn default() -> OrganizationUser
Source§impl<'de> Deserialize<'de> for OrganizationUser
impl<'de> Deserialize<'de> for OrganizationUser
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>,
Source§impl PartialEq for OrganizationUser
impl PartialEq for OrganizationUser
Source§impl Serialize for OrganizationUser
impl Serialize for OrganizationUser
impl StructuralPartialEq for OrganizationUser
Auto Trait Implementations§
impl Freeze for OrganizationUser
impl RefUnwindSafe for OrganizationUser
impl Send for OrganizationUser
impl Sync for OrganizationUser
impl Unpin for OrganizationUser
impl UnsafeUnpin for OrganizationUser
impl UnwindSafe for OrganizationUser
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more