pub struct OrganizationUserV2UpgradeRequestModel {
pub organization_user_id: Uuid,
pub user_key_id: String,
pub account_recovery_key: Option<String>,
}Fields§
§organization_user_id: Uuid§user_key_id: StringThe key id of the user key the new Bit.Api.KeyManagement.Models.Requests.OrganizationUserV2UpgradeRequestModel. AccountRecoveryKey wraps. The server checks it against the member’s user row. When it no longer matches, the server skips the update and the membership stays pending. It is required to unenroll a member as well, so that a stale request cannot undo a rotation the admin has not read.
account_recovery_key: Option<String>The member’s V2 user key wrapped with the organization’s public key, or null to unenroll the member from account recovery. Send null when the upgrade cannot be completed, for example when the V2 upgrade token does not contain a usable user key. The member keeps their vault, and the organization’s enrollment policy prompts them to enroll again. A blank key is rejected, because only a key or its absence is meaningful.
Implementations§
Source§impl OrganizationUserV2UpgradeRequestModel
impl OrganizationUserV2UpgradeRequestModel
pub fn new( organization_user_id: Uuid, user_key_id: String, ) -> OrganizationUserV2UpgradeRequestModel
Trait Implementations§
Source§impl Clone for OrganizationUserV2UpgradeRequestModel
impl Clone for OrganizationUserV2UpgradeRequestModel
Source§fn clone(&self) -> OrganizationUserV2UpgradeRequestModel
fn clone(&self) -> OrganizationUserV2UpgradeRequestModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for OrganizationUserV2UpgradeRequestModel
impl Default for OrganizationUserV2UpgradeRequestModel
Source§fn default() -> OrganizationUserV2UpgradeRequestModel
fn default() -> OrganizationUserV2UpgradeRequestModel
Source§impl<'de> Deserialize<'de> for OrganizationUserV2UpgradeRequestModel
impl<'de> Deserialize<'de> for OrganizationUserV2UpgradeRequestModel
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>,
impl StructuralPartialEq for OrganizationUserV2UpgradeRequestModel
Auto Trait Implementations§
impl Freeze for OrganizationUserV2UpgradeRequestModel
impl RefUnwindSafe for OrganizationUserV2UpgradeRequestModel
impl Send for OrganizationUserV2UpgradeRequestModel
impl Sync for OrganizationUserV2UpgradeRequestModel
impl Unpin for OrganizationUserV2UpgradeRequestModel
impl UnsafeUnpin for OrganizationUserV2UpgradeRequestModel
impl UnwindSafe for OrganizationUserV2UpgradeRequestModel
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> 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