pub struct GrantMigration;Expand description
Grant-specific migration operations
Implementations§
Source§impl GrantMigration
impl GrantMigration
Sourcepub fn create_grant(grant: &Grant) -> Migration
pub fn create_grant(grant: &Grant) -> Migration
Create a migration for adding a grant
Sourcepub fn revoke_grant(grant: &Grant) -> Migration
pub fn revoke_grant(grant: &Grant) -> Migration
Create a migration for revoking a grant
Sourcepub fn modify_grant(old_grant: &Grant, new_grant: &Grant) -> Migration
pub fn modify_grant(old_grant: &Grant, new_grant: &Grant) -> Migration
Create a migration for modifying a grant
Auto Trait Implementations§
impl Freeze for GrantMigration
impl RefUnwindSafe for GrantMigration
impl Send for GrantMigration
impl Sync for GrantMigration
impl Unpin for GrantMigration
impl UnsafeUnpin for GrantMigration
impl UnwindSafe for GrantMigration
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<T> ErasedDestructor for Twhere
T: 'static,
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