Struct ink_metadata::EnvironmentSpec
source · pub struct EnvironmentSpec<F: Form = MetaForm>{ /* private fields */ }
Expand description
Describes a contract environment.
Implementations§
source§impl<F> EnvironmentSpec<F>
impl<F> EnvironmentSpec<F>
sourcepub fn account_id(&self) -> &TypeSpec<F>
pub fn account_id(&self) -> &TypeSpec<F>
Returns the AccountId
type of the environment.
sourcepub fn block_number(&self) -> &TypeSpec<F>
pub fn block_number(&self) -> &TypeSpec<F>
Returns the BlockNumber
type of the environment.
sourcepub fn chain_extension(&self) -> &TypeSpec<F>
pub fn chain_extension(&self) -> &TypeSpec<F>
Returns the ChainExtension
type of the environment.
sourcepub fn max_event_topics(&self) -> usize
pub fn max_event_topics(&self) -> usize
Returns the MAX_EVENT_TOPICS
value of the environment.
source§impl<F> EnvironmentSpec<F>
impl<F> EnvironmentSpec<F>
pub fn new() -> EnvironmentSpecBuilder<F, Missing<AccountId>, Missing<Balance>, Missing<Hash>, Missing<Timestamp>, Missing<BlockNumber>, Missing<ChainExtension>, Missing<MaxEventTopics>, Missing<BufferSize>>
Trait Implementations§
source§impl<F: Debug + Form> Debug for EnvironmentSpec<F>
impl<F: Debug + Form> Debug for EnvironmentSpec<F>
source§impl<F> Default for EnvironmentSpec<F>
impl<F> Default for EnvironmentSpec<F>
source§impl<'de, F: Form> Deserialize<'de> for EnvironmentSpec<F>
impl<'de, F: Form> Deserialize<'de> for EnvironmentSpec<F>
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 IntoPortable for EnvironmentSpec
impl IntoPortable for EnvironmentSpec
§type Output = EnvironmentSpec<PortableForm>
type Output = EnvironmentSpec<PortableForm>
The portable version of
Self
.source§fn into_portable(self, registry: &mut Registry) -> Self::Output
fn into_portable(self, registry: &mut Registry) -> Self::Output
Convert
self
to the portable form by using the registry for caching.source§impl<F: Form + JsonSchema> JsonSchema for EnvironmentSpec<F>
impl<F: Form + JsonSchema> JsonSchema for EnvironmentSpec<F>
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn 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 moresource§impl<F: PartialEq + Form> PartialEq for EnvironmentSpec<F>
impl<F: PartialEq + Form> PartialEq for EnvironmentSpec<F>
source§fn eq(&self, other: &EnvironmentSpec<F>) -> bool
fn eq(&self, other: &EnvironmentSpec<F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<F: Form> Serialize for EnvironmentSpec<F>
impl<F: Form> Serialize for EnvironmentSpec<F>
impl<F: Eq + Form> Eq for EnvironmentSpec<F>
impl<F: Form> StructuralPartialEq for EnvironmentSpec<F>
Auto Trait Implementations§
impl<F> Freeze for EnvironmentSpec<F>
impl<F> RefUnwindSafe for EnvironmentSpec<F>
impl<F> Send for EnvironmentSpec<F>
impl<F> Sync for EnvironmentSpec<F>
impl<F> Unpin for EnvironmentSpec<F>
impl<F> UnwindSafe for EnvironmentSpec<F>
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