pub enum ContractPackageStatus {
Locked,
Unlocked,
}
Expand description
A enum to determine the lock status of the contract package.
Variants§
Locked
The package is locked and cannot be versioned.
Unlocked
The package is unlocked and can be versioned.
Implementations§
Trait Implementations§
source§impl Clone for ContractPackageStatus
impl Clone for ContractPackageStatus
source§fn clone(&self) -> ContractPackageStatus
fn clone(&self) -> ContractPackageStatus
Returns a copy 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 ContractPackageStatus
impl Debug for ContractPackageStatus
source§impl Default for ContractPackageStatus
impl Default for ContractPackageStatus
source§impl<'de> Deserialize<'de> for ContractPackageStatus
impl<'de> Deserialize<'de> for ContractPackageStatus
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 FromBytes for ContractPackageStatus
impl FromBytes for ContractPackageStatus
source§impl PartialEq for ContractPackageStatus
impl PartialEq for ContractPackageStatus
source§fn eq(&self, other: &ContractPackageStatus) -> bool
fn eq(&self, other: &ContractPackageStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContractPackageStatus
impl Serialize for ContractPackageStatus
source§impl ToBytes for ContractPackageStatus
impl ToBytes for ContractPackageStatus
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Eq for ContractPackageStatus
impl StructuralEq for ContractPackageStatus
impl StructuralPartialEq for ContractPackageStatus
Auto Trait Implementations§
impl RefUnwindSafe for ContractPackageStatus
impl Send for ContractPackageStatus
impl Sync for ContractPackageStatus
impl Unpin for ContractPackageStatus
impl UnwindSafe for ContractPackageStatus
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