pub struct MigrationToken {
pub database_identity: Identity,
pub old_module_hash: Hash,
pub new_module_hash: Hash,
}Expand description
A token acknowledging a breaking migration.
Note: This token is only intended as a UX safeguard, not as a security measure. No secret is used in its generation, which means anyone can reproduce it given the inputs. That is acceptable for our purposes since it only signals user intent, not authorization.
Fields§
§database_identity: Identity§old_module_hash: Hash§new_module_hash: HashImplementations§
Auto Trait Implementations§
impl Freeze for MigrationToken
impl RefUnwindSafe for MigrationToken
impl Send for MigrationToken
impl Sync for MigrationToken
impl Unpin for MigrationToken
impl UnsafeUnpin for MigrationToken
impl UnwindSafe for MigrationToken
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
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