pub struct LegacySystemConverter { /* private fields */ }Expand description
Comprehensive converter that handles all data types
Implementations§
Source§impl LegacySystemConverter
impl LegacySystemConverter
Sourcepub fn new(
role_converter: RoleConverter,
permission_converter: PermissionConverter,
user_assignment_converter: UserAssignmentConverter,
) -> Self
pub fn new( role_converter: RoleConverter, permission_converter: PermissionConverter, user_assignment_converter: UserAssignmentConverter, ) -> Self
Create new system converter with custom components
Sourcepub fn convert_system(
&self,
legacy_roles: &[LegacyRole],
legacy_permissions: &[LegacyPermission],
legacy_assignments: &[LegacyUserAssignment],
) -> Result<ConvertedSystem, MigrationError>
pub fn convert_system( &self, legacy_roles: &[LegacyRole], legacy_permissions: &[LegacyPermission], legacy_assignments: &[LegacyUserAssignment], ) -> Result<ConvertedSystem, MigrationError>
Convert entire legacy system
Trait Implementations§
Source§impl Default for LegacySystemConverter
impl Default for LegacySystemConverter
Source§fn default() -> LegacySystemConverter
fn default() -> LegacySystemConverter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LegacySystemConverter
impl RefUnwindSafe for LegacySystemConverter
impl Send for LegacySystemConverter
impl Sync for LegacySystemConverter
impl Unpin for LegacySystemConverter
impl UnwindSafe for LegacySystemConverter
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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