pub struct Upgrade {
pub owner: AccountId,
pub staging_duration: Duration,
pub staging_timestamp: Timestamp,
}
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Fields§
§owner: AccountId
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
§staging_duration: Duration
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
§staging_timestamp: Timestamp
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Upgrade
impl BorshDeserialize for Upgrade
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSchema for Upgrade
impl BorshSchema for Upgrade
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for Upgrade
impl BorshSerialize for Upgrade
Source§impl Ownable for Upgrade
impl Ownable for Upgrade
Source§fn get_owner(&self) -> AccountId
fn get_owner(&self) -> AccountId
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Source§fn set_owner(&mut self, owner: AccountId)
fn set_owner(&mut self, owner: AccountId)
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Source§fn assert_owner(&self)
fn assert_owner(&self)
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Source§impl Upgradable for Upgrade
impl Upgradable for Upgrade
Source§fn get_staging_duration(&self) -> U64
fn get_staging_duration(&self) -> U64
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Source§fn stage_code(&mut self, code: Vec<u8>, timestamp: Timestamp)
fn stage_code(&mut self, code: Vec<u8>, timestamp: Timestamp)
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Source§fn deploy_code(&mut self) -> Promise
fn deploy_code(&mut self) -> Promise
👎Deprecated since 4.1.0: This was removed because there is no standard (NEP) for upgradable contracts.
Auto Trait Implementations§
impl Freeze for Upgrade
impl RefUnwindSafe for Upgrade
impl Send for Upgrade
impl Sync for Upgrade
impl Unpin for Upgrade
impl UnwindSafe for Upgrade
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