pub struct PutContractRequest {
pub contract: ContractContainer,
pub state: WrappedState,
pub related_contracts: RelatedContracts<'static>,
pub context: DelegateContext,
pub processed: bool,
}Expand description
Request to store a new contract from within a delegate.
Fields§
§contract: ContractContainerThe contract code and parameters.
state: WrappedStateThe initial state for the contract.
Related contracts that this contract depends on.
context: DelegateContextContext for the delegate.
processed: boolWhether this request has been processed.
Implementations§
Source§impl PutContractRequest
impl PutContractRequest
pub fn new( contract: ContractContainer, state: WrappedState, related_contracts: RelatedContracts<'static>, ) -> Self
Trait Implementations§
Source§impl Clone for PutContractRequest
impl Clone for PutContractRequest
Source§fn clone(&self) -> PutContractRequest
fn clone(&self) -> PutContractRequest
Returns a duplicate 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 PutContractRequest
impl Debug for PutContractRequest
Source§impl<'de> Deserialize<'de> for PutContractRequest
impl<'de> Deserialize<'de> for PutContractRequest
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 From<PutContractRequest> for OutboundDelegateMsg
impl From<PutContractRequest> for OutboundDelegateMsg
Source§fn from(req: PutContractRequest) -> Self
fn from(req: PutContractRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PutContractRequest
impl RefUnwindSafe for PutContractRequest
impl Send for PutContractRequest
impl Sync for PutContractRequest
impl Unpin for PutContractRequest
impl UnwindSafe for PutContractRequest
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