pub struct Migration {
pub P: RistrettoPoint,
pub Q: RistrettoPoint,
pub lox_id: Scalar,
pub from_bucket: Scalar,
pub to_bucket: Scalar,
pub migration_type: Scalar,
}Expand description
A migration credential.
This credential authorizes the holder of the Lox credential with the given id to switch from bucket from_bucket to bucket to_bucket. The migration_type attribute is 0 for trust upgrade migrations (moving from a 1-bridge untrusted bucket to a 3-bridge trusted bucket) and 1 for blockage migrations (moving buckets because the from_bucket has been blocked).
Fields§
§P: RistrettoPoint§Q: RistrettoPoint§lox_id: Scalar§from_bucket: Scalar§to_bucket: Scalar§migration_type: ScalarTrait Implementations§
Source§impl<'de> Deserialize<'de> for Migration
impl<'de> Deserialize<'de> for Migration
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 Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnsafeUnpin for Migration
impl UnwindSafe for Migration
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