pub struct GroupMigrationBundle { /* private fields */ }Available on crate feature
migration-import and (32-bit or 64-bit) only.Expand description
Bundle used to import a group exported from a previous OpenMLS version. See
GroupMigrationBundle::store.
A group and all of the group-associated data it owns, deserialized from a
previous OpenMLS version for migration. The mirror of the older version’s
MlsGroup::export_for_migration.
Implementations§
Source§impl GroupMigrationBundle
impl GroupMigrationBundle
Sourcepub fn store<Storage: StorageProvider>(
&self,
storage: &Storage,
) -> Result<(), Storage::Error>
pub fn store<Storage: StorageProvider>( &self, storage: &Storage, ) -> Result<(), Storage::Error>
Store the migrated group and all of its group-associated data in the current storage format.
NOTE: This replaces any existing state for the group’s GroupId, under the same GroupId encoding.
Single-value tables are overwritten and the accumulate-style data (own leaf nodes, proposal queue) are cleared before writing.
Old-format entries under a different key encoding are not changed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GroupMigrationBundle
impl<'de> Deserialize<'de> for GroupMigrationBundle
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
Auto Trait Implementations§
impl Freeze for GroupMigrationBundle
impl RefUnwindSafe for GroupMigrationBundle
impl Send for GroupMigrationBundle
impl Sync for GroupMigrationBundle
impl Unpin for GroupMigrationBundle
impl UnsafeUnpin for GroupMigrationBundle
impl UnwindSafe for GroupMigrationBundle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 more