pub struct Migration { /* private fields */ }Expand description
A type to tie together the receipt, consumed treasury and created treasury of a migration.
Implementations§
Source§impl Migration
impl Migration
Sourcepub fn new(
receipt: Receipt,
consumed_treasury: TreasuryOutput,
created_treasury: TreasuryOutput,
) -> Self
pub fn new( receipt: Receipt, consumed_treasury: TreasuryOutput, created_treasury: TreasuryOutput, ) -> Self
Creates a new Migration.
Sourcepub fn consumed_treasury(&self) -> &TreasuryOutput
pub fn consumed_treasury(&self) -> &TreasuryOutput
Returns the consumed treasury output of the Migration.
Sourcepub fn created_treasury(&self) -> &TreasuryOutput
pub fn created_treasury(&self) -> &TreasuryOutput
Returns the created treasury output of the Migration.
Auto Trait Implementations§
impl Freeze for Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin 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