Struct fadroma::killswitch::ContractStatus
source · [−]pub struct ContractStatus<A> {
pub level: ContractStatusLevel,
pub reason: String,
pub new_address: Option<A>,
}
Expand description
Current state of a contract w/ optional description and pointer to new version
Fields
level: ContractStatusLevel
reason: String
new_address: Option<A>
Trait Implementations
sourceimpl Canonize for ContractStatus<HumanAddr>
impl Canonize for ContractStatus<HumanAddr>
type Output = ContractStatus<CanonicalAddr>
fn canonize(self, api: &impl Api) -> StdResult<Self::Output>
sourceimpl<A: Clone> Clone for ContractStatus<A>
impl<A: Clone> Clone for ContractStatus<A>
sourcefn clone(&self) -> ContractStatus<A>
fn clone(&self) -> ContractStatus<A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<A: Debug> Debug for ContractStatus<A>
impl<A: Debug> Debug for ContractStatus<A>
sourceimpl<A> Default for ContractStatus<A>
impl<A> Default for ContractStatus<A>
sourceimpl<'de, A> Deserialize<'de> for ContractStatus<A> where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for ContractStatus<A> where
A: Deserialize<'de>,
sourcefn 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
sourceimpl Humanize for ContractStatus<CanonicalAddr>
impl Humanize for ContractStatus<CanonicalAddr>
sourceimpl<A: JsonSchema> JsonSchema for ContractStatus<A>
impl<A: JsonSchema> JsonSchema for ContractStatus<A>
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl<A: PartialEq> PartialEq<ContractStatus<A>> for ContractStatus<A>
impl<A: PartialEq> PartialEq<ContractStatus<A>> for ContractStatus<A>
sourcefn eq(&self, other: &ContractStatus<A>) -> bool
fn eq(&self, other: &ContractStatus<A>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ContractStatus<A>) -> bool
fn ne(&self, other: &ContractStatus<A>) -> bool
This method tests for !=
.
sourceimpl<A> Serialize for ContractStatus<A> where
A: Serialize,
impl<A> Serialize for ContractStatus<A> where
A: Serialize,
impl<A> StructuralPartialEq for ContractStatus<A>
Auto Trait Implementations
impl<A> RefUnwindSafe for ContractStatus<A> where
A: RefUnwindSafe,
impl<A> Send for ContractStatus<A> where
A: Send,
impl<A> Sync for ContractStatus<A> where
A: Sync,
impl<A> Unpin for ContractStatus<A> where
A: Unpin,
impl<A> UnwindSafe for ContractStatus<A> where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more