Struct ink_metadata::EnvironmentSpecBuilder
source · pub struct EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BS>{ /* private fields */ }
Expand description
An environment specification builder.
Implementations§
source§impl<F, B, H, T, BN, C, M, BS> EnvironmentSpecBuilder<F, Missing<AccountId>, B, H, T, BN, C, M, BS>
impl<F, B, H, T, BN, C, M, BS> EnvironmentSpecBuilder<F, Missing<AccountId>, B, H, T, BN, C, M, BS>
sourcepub fn account_id(
self,
account_id: TypeSpec<F>,
) -> EnvironmentSpecBuilder<F, AccountId, B, H, T, BN, C, M, BS>
pub fn account_id( self, account_id: TypeSpec<F>, ) -> EnvironmentSpecBuilder<F, AccountId, B, H, T, BN, C, M, BS>
Sets the AccountId
type of the environment.
source§impl<F, A, H, T, BN, C, M, BS> EnvironmentSpecBuilder<F, A, Missing<Balance>, H, T, BN, C, M, BS>
impl<F, A, H, T, BN, C, M, BS> EnvironmentSpecBuilder<F, A, Missing<Balance>, H, T, BN, C, M, BS>
sourcepub fn balance(
self,
balance: TypeSpec<F>,
) -> EnvironmentSpecBuilder<F, A, Balance, H, T, BN, C, M, BS>
pub fn balance( self, balance: TypeSpec<F>, ) -> EnvironmentSpecBuilder<F, A, Balance, H, T, BN, C, M, BS>
Sets the Balance
type of the environment.
source§impl<F, A, B, T, BN, C, M, BS> EnvironmentSpecBuilder<F, A, B, Missing<Hash>, T, BN, C, M, BS>
impl<F, A, B, T, BN, C, M, BS> EnvironmentSpecBuilder<F, A, B, Missing<Hash>, T, BN, C, M, BS>
sourcepub fn hash(
self,
hash: TypeSpec<F>,
) -> EnvironmentSpecBuilder<F, A, B, Hash, T, BN, C, M, BS>
pub fn hash( self, hash: TypeSpec<F>, ) -> EnvironmentSpecBuilder<F, A, B, Hash, T, BN, C, M, BS>
Sets the Hash
type of the environment.
source§impl<F, A, B, H, BN, C, M, BS> EnvironmentSpecBuilder<F, A, B, H, Missing<Timestamp>, BN, C, M, BS>
impl<F, A, B, H, BN, C, M, BS> EnvironmentSpecBuilder<F, A, B, H, Missing<Timestamp>, BN, C, M, BS>
sourcepub fn timestamp(
self,
timestamp: TypeSpec<F>,
) -> EnvironmentSpecBuilder<F, A, B, H, Timestamp, BN, C, M, BS>
pub fn timestamp( self, timestamp: TypeSpec<F>, ) -> EnvironmentSpecBuilder<F, A, B, H, Timestamp, BN, C, M, BS>
Sets the Timestamp
type of the environment.
source§impl<F, A, B, H, T, C, M, BS> EnvironmentSpecBuilder<F, A, B, H, T, Missing<BlockNumber>, C, M, BS>
impl<F, A, B, H, T, C, M, BS> EnvironmentSpecBuilder<F, A, B, H, T, Missing<BlockNumber>, C, M, BS>
sourcepub fn block_number(
self,
block_number: TypeSpec<F>,
) -> EnvironmentSpecBuilder<F, A, B, H, T, BlockNumber, C, M, BS>
pub fn block_number( self, block_number: TypeSpec<F>, ) -> EnvironmentSpecBuilder<F, A, B, H, T, BlockNumber, C, M, BS>
Sets the BlockNumber
type of the environment.
source§impl<F, A, B, H, T, BN, M, BS> EnvironmentSpecBuilder<F, A, B, H, T, BN, Missing<ChainExtension>, M, BS>
impl<F, A, B, H, T, BN, M, BS> EnvironmentSpecBuilder<F, A, B, H, T, BN, Missing<ChainExtension>, M, BS>
sourcepub fn chain_extension(
self,
chain_extension: TypeSpec<F>,
) -> EnvironmentSpecBuilder<F, A, B, H, T, BN, ChainExtension, M, BS>
pub fn chain_extension( self, chain_extension: TypeSpec<F>, ) -> EnvironmentSpecBuilder<F, A, B, H, T, BN, ChainExtension, M, BS>
Sets the ChainExtension
type of the environment.
source§impl<F, A, B, H, T, BN, C, BS> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, Missing<MaxEventTopics>, BS>
impl<F, A, B, H, T, BN, C, BS> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, Missing<MaxEventTopics>, BS>
sourcepub fn max_event_topics(
self,
max_event_topics: usize,
) -> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, MaxEventTopics, BS>
pub fn max_event_topics( self, max_event_topics: usize, ) -> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, MaxEventTopics, BS>
Sets the MAX_EVENT_TOPICS
value of the environment.
source§impl<F, A, B, H, T, BN, C, M> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, Missing<BufferSize>>
impl<F, A, B, H, T, BN, C, M> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, Missing<BufferSize>>
sourcepub fn static_buffer_size(
self,
static_buffer_size: usize,
) -> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BufferSize>
pub fn static_buffer_size( self, static_buffer_size: usize, ) -> EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BufferSize>
Sets the size of the static buffer configured via environment variable.`
source§impl<F> EnvironmentSpecBuilder<F, AccountId, Balance, Hash, Timestamp, BlockNumber, ChainExtension, MaxEventTopics, BufferSize>
impl<F> EnvironmentSpecBuilder<F, AccountId, Balance, Hash, Timestamp, BlockNumber, ChainExtension, MaxEventTopics, BufferSize>
sourcepub fn done(self) -> EnvironmentSpec<F>
pub fn done(self) -> EnvironmentSpec<F>
Finished constructing the EnvironmentSpec
object.
Auto Trait Implementations§
impl<F, A, B, H, T, BN, C, M, BS> Freeze for EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BS>
impl<F, A, B, H, T, BN, C, M, BS> RefUnwindSafe for EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BS>where
EnvironmentSpec<F>: Sized,
TypeSpec<F>: Sized,
<F as Form>::Type: RefUnwindSafe,
<F as Form>::String: RefUnwindSafe,
impl<F, A, B, H, T, BN, C, M, BS> Send for EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BS>
impl<F, A, B, H, T, BN, C, M, BS> Sync for EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BS>
impl<F, A, B, H, T, BN, C, M, BS> Unpin for EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BS>
impl<F, A, B, H, T, BN, C, M, BS> UnwindSafe for EnvironmentSpecBuilder<F, A, B, H, T, BN, C, M, BS>where
EnvironmentSpec<F>: Sized,
TypeSpec<F>: Sized,
<F as Form>::Type: UnwindSafe,
<F as Form>::String: UnwindSafe,
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