Struct cosmwasm_std::ContractInfoResponse
source · [−]#[non_exhaustive]pub struct ContractInfoResponse {
pub code_id: u64,
pub creator: String,
pub admin: Option<String>,
pub pinned: bool,
pub ibc_port: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.code_id: u64
creator: String
address that instantiated this contract
admin: Option<String>
admin who can run migrations (if any)
pinned: bool
if set, the contract is pinned to the cache, and thus uses less gas when called
ibc_port: Option<String>
set if this contract has bound an IBC port
Trait Implementations
sourceimpl Clone for ContractInfoResponse
impl Clone for ContractInfoResponse
sourcefn clone(&self) -> ContractInfoResponse
fn clone(&self) -> ContractInfoResponse
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 Debug for ContractInfoResponse
impl Debug for ContractInfoResponse
sourceimpl<'de> Deserialize<'de> for ContractInfoResponse
impl<'de> Deserialize<'de> for ContractInfoResponse
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 JsonSchema for ContractInfoResponse
impl JsonSchema for ContractInfoResponse
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 PartialEq<ContractInfoResponse> for ContractInfoResponse
impl PartialEq<ContractInfoResponse> for ContractInfoResponse
sourcefn eq(&self, other: &ContractInfoResponse) -> bool
fn eq(&self, other: &ContractInfoResponse) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ContractInfoResponse) -> bool
fn ne(&self, other: &ContractInfoResponse) -> bool
This method tests for !=
.
sourceimpl Serialize for ContractInfoResponse
impl Serialize for ContractInfoResponse
impl StructuralPartialEq for ContractInfoResponse
Auto Trait Implementations
impl RefUnwindSafe for ContractInfoResponse
impl Send for ContractInfoResponse
impl Sync for ContractInfoResponse
impl Unpin for ContractInfoResponse
impl UnwindSafe for ContractInfoResponse
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more