pub struct OrganizationMembership {
pub status: OrganizationUserStatusType,
pub type: OrganizationUserType,
pub permissions: Permissions,
pub user_id: UserId,
pub organization_user_id: Option<OrganizationUserId>,
pub is_member: bool,
pub is_provider_user: bool,
pub reset_password_enrolled: bool,
pub sso_bound: bool,
pub user_is_claimed_by_organization: bool,
pub access_secrets_manager: bool,
}Expand description
The current user’s relationship to the organization.
Fields§
§status: OrganizationUserStatusTypeThe user’s membership status in the organization.
type: OrganizationUserTypeThe user’s role in the organization.
permissions: PermissionsThe current user’s custom permissions, relevant when OrganizationUserType::Custom is
the user’s type.
user_id: UserIdThe current user’s personal user ID.
organization_user_id: Option<OrganizationUserId>The current user’s organization membership ID. None if the current user has access only through a provider.
is_member: boolWhether the current user is a direct member of this organization (as opposed to provider-only access).
is_provider_user: boolWhether the current user accesses this organization through a provider.
reset_password_enrolled: boolWhether the current user is enrolled in account recovery for this organization.
sso_bound: boolWhether the current user’s account is linked to this organization via SSO.
user_is_claimed_by_organization: boolWhether the current user’s account is claimed by this organization.
access_secrets_manager: boolWhether the current user has access to Secrets Manager for this organization.
Trait Implementations§
Source§impl Clone for OrganizationMembership
impl Clone for OrganizationMembership
Source§fn clone(&self) -> OrganizationMembership
fn clone(&self) -> OrganizationMembership
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for OrganizationMembership
impl<UT> ConvertError<UT> for OrganizationMembership
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for OrganizationMembership
impl Debug for OrganizationMembership
Source§impl Default for OrganizationMembership
impl Default for OrganizationMembership
Source§impl<'de> Deserialize<'de> for OrganizationMembership
impl<'de> Deserialize<'de> for OrganizationMembership
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<UT> FfiConverter<UT> for OrganizationMembership
impl<UT> FfiConverter<UT> for OrganizationMembership
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl From<OrganizationMembership> for JsValuewhere
OrganizationMembership: Serialize,
impl From<OrganizationMembership> for JsValuewhere
OrganizationMembership: Serialize,
Source§fn from(value: OrganizationMembership) -> Self
fn from(value: OrganizationMembership) -> Self
Source§impl FromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
impl FromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &OrganizationMembershipwhere
OrganizationMembership: Serialize,
impl IntoWasmAbi for &OrganizationMembershipwhere
OrganizationMembership: Serialize,
Source§impl IntoWasmAbi for OrganizationMembershipwhere
OrganizationMembership: Serialize,
impl IntoWasmAbi for OrganizationMembershipwhere
OrganizationMembership: Serialize,
Source§impl<UT> Lift<UT> for OrganizationMembership
impl<UT> Lift<UT> for OrganizationMembership
Source§impl<UT> LiftRef<UT> for OrganizationMembership
impl<UT> LiftRef<UT> for OrganizationMembership
Source§impl<UT> LiftReturn<UT> for OrganizationMembership
impl<UT> LiftReturn<UT> for OrganizationMembership
Source§type ReturnType = <OrganizationMembership as Lift<UT>>::FfiType
type ReturnType = <OrganizationMembership as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for OrganizationMembership
impl<UT> Lower<UT> for OrganizationMembership
Source§impl<UT> LowerError<UT> for OrganizationMembership
impl<UT> LowerError<UT> for OrganizationMembership
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for OrganizationMembership
impl<UT> LowerReturn<UT> for OrganizationMembership
Source§type ReturnType = <OrganizationMembership as Lower<UT>>::FfiType
type ReturnType = <OrganizationMembership as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl OptionFromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
Source§impl PartialEq for OrganizationMembership
impl PartialEq for OrganizationMembership
Source§impl RefFromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<OrganizationMembership>
type Anchor = SelfOwner<OrganizationMembership>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for OrganizationMembership
impl Serialize for OrganizationMembership
impl StructuralPartialEq for OrganizationMembership
Source§impl Tsify for OrganizationMembership
impl Tsify for OrganizationMembership
const DECL: &'static str = "/**\n * The current user\\\'s relationship to the organization.\n */\nexport interface OrganizationMembership {\n /**\n * The user\\\'s membership status in the organization.\n */\n status: OrganizationUserStatusType;\n /**\n * The user\\\'s role in the organization.\n */\n type: OrganizationUserType;\n /**\n * The current user\\\'s custom permissions, relevant when [`OrganizationUserType::Custom`] is\n * the user\\\'s `type`.\n */\n permissions: Permissions;\n /**\n * The current user\\\'s personal user ID.\n */\n userId: UserId;\n /**\n * The current user\\\'s organization membership ID.\n * None if the current user has access only through a provider.\n */\n organizationUserId: OrganizationUserId | undefined;\n /**\n * Whether the current user is a direct member of this organization (as opposed to\n * provider-only access).\n */\n isMember: boolean;\n /**\n * Whether the current user accesses this organization through a provider.\n */\n isProviderUser: boolean;\n /**\n * Whether the current user is enrolled in account recovery for this organization.\n */\n resetPasswordEnrolled: boolean;\n /**\n * Whether the current user\\\'s account is linked to this organization via SSO.\n */\n ssoBound: boolean;\n /**\n * Whether the current user\\\'s account is claimed by this organization.\n */\n userIsClaimedByOrganization: boolean;\n /**\n * Whether the current user has access to Secrets Manager for this organization.\n */\n accessSecretsManager: boolean;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl<UT> TypeId<UT> for OrganizationMembership
impl<UT> TypeId<UT> for OrganizationMembership
const TYPE_ID_META: MetadataBuffer
Source§impl VectorFromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for OrganizationMembershipwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for OrganizationMembershipwhere
OrganizationMembership: Serialize,
impl VectorIntoWasmAbi for OrganizationMembershipwhere
OrganizationMembership: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Auto Trait Implementations§
impl Freeze for OrganizationMembership
impl RefUnwindSafe for OrganizationMembership
impl Send for OrganizationMembership
impl Sync for OrganizationMembership
impl Unpin for OrganizationMembership
impl UnsafeUnpin for OrganizationMembership
impl UnwindSafe for OrganizationMembership
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Persist for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.