pub struct UpgradeCap {
pub id: UID,
pub package: ID,
pub version: u64,
pub policy: u8,
}
Expand description
Capability controlling the ability to upgrade a package.
Fields§
§id: UID
§package: ID
(Mutable) ID of the package that can be upgraded.
version: u64
(Mutable) The number of upgrades that have been applied successively to the original package. Initially 0.
policy: u8
What kind of upgrades are allowed.
Implementations§
Source§impl UpgradeCap
impl UpgradeCap
Source§impl UpgradeCap
impl UpgradeCap
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> UpgradeCapTypeTag
Trait Implementations§
Source§impl Clone for UpgradeCap
impl Clone for UpgradeCap
Source§fn clone(&self) -> UpgradeCap
fn clone(&self) -> UpgradeCap
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 UpgradeCap
impl Debug for UpgradeCap
Source§impl<'de> Deserialize<'de> for UpgradeCap
impl<'de> Deserialize<'de> for UpgradeCap
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 UpgradeCap
impl Display for UpgradeCap
Source§impl Hash for UpgradeCap
impl Hash for UpgradeCap
Source§impl MoveStruct for UpgradeCap
impl MoveStruct for UpgradeCap
Source§impl MoveType for UpgradeCap
impl MoveType for UpgradeCap
Source§impl PartialEq for UpgradeCap
impl PartialEq for UpgradeCap
Source§impl Serialize for UpgradeCap
impl Serialize for UpgradeCap
Source§impl StaticAddress for UpgradeCap
impl StaticAddress for UpgradeCap
Source§impl StaticModule for UpgradeCap
impl StaticModule for UpgradeCap
fn module() -> Identifier
Source§impl StaticName for UpgradeCap
impl StaticName for UpgradeCap
fn name() -> Identifier
Source§impl StaticTypeParams for UpgradeCap
impl StaticTypeParams for UpgradeCap
fn type_params() -> Vec<TypeTag>
Source§impl Tabled for UpgradeCap
impl Tabled for UpgradeCap
impl Eq for UpgradeCap
impl StructuralPartialEq for UpgradeCap
Auto Trait Implementations§
impl Freeze for UpgradeCap
impl RefUnwindSafe for UpgradeCap
impl Send for UpgradeCap
impl Sync for UpgradeCap
impl Unpin for UpgradeCap
impl UnwindSafe for UpgradeCap
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