pub struct UpgradeReceipt {
pub cap: ID,
pub package: ID,
}
Expand description
Issued as a result of a successful upgrade, containing the
information to be used to update the UpgradeCap
. This is a “Hot
Potato” to ensure that it is used to update its UpgradeCap
before
the end of the transaction that performed the upgrade.
Fields§
§cap: ID
(Immutable) ID of the UpgradeCap
this originated from.
package: ID
(Immutable) ID of the package after it was upgraded.
Implementations§
Source§impl UpgradeReceipt
impl UpgradeReceipt
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> UpgradeReceiptTypeTag
Trait Implementations§
Source§impl Clone for UpgradeReceipt
impl Clone for UpgradeReceipt
Source§fn clone(&self) -> UpgradeReceipt
fn clone(&self) -> UpgradeReceipt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UpgradeReceipt
impl Debug for UpgradeReceipt
Source§impl<'de> Deserialize<'de> for UpgradeReceipt
impl<'de> Deserialize<'de> for UpgradeReceipt
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
Source§impl Display for UpgradeReceipt
impl Display for UpgradeReceipt
Source§impl Hash for UpgradeReceipt
impl Hash for UpgradeReceipt
Source§impl MoveStruct for UpgradeReceipt
impl MoveStruct for UpgradeReceipt
Source§impl MoveType for UpgradeReceipt
impl MoveType for UpgradeReceipt
Source§impl PartialEq for UpgradeReceipt
impl PartialEq for UpgradeReceipt
Source§impl Serialize for UpgradeReceipt
impl Serialize for UpgradeReceipt
Source§impl StaticAddress for UpgradeReceipt
impl StaticAddress for UpgradeReceipt
Source§impl StaticModule for UpgradeReceipt
impl StaticModule for UpgradeReceipt
fn module() -> Identifier
Source§impl StaticName for UpgradeReceipt
impl StaticName for UpgradeReceipt
fn name() -> Identifier
Source§impl StaticTypeParams for UpgradeReceipt
impl StaticTypeParams for UpgradeReceipt
fn type_params() -> Vec<TypeTag>
Source§impl Tabled for UpgradeReceipt
impl Tabled for UpgradeReceipt
impl Eq for UpgradeReceipt
impl StructuralPartialEq for UpgradeReceipt
Auto Trait Implementations§
impl Freeze for UpgradeReceipt
impl RefUnwindSafe for UpgradeReceipt
impl Send for UpgradeReceipt
impl Sync for UpgradeReceipt
impl Unpin for UpgradeReceipt
impl UnwindSafe for UpgradeReceipt
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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