Struct coreledger_backend::model::SupplyParameters
pub struct SupplyParameters {
pub controller: Option<ContractId>,
pub take_all: bool,
pub desired_address: Option<Principal>,
}
Expand description
Optional parameters of the supply
Fields§
§controller: Option<ContractId>
Contract id of the controller assigned to the supply.
take_all: bool
Indicates whether the offer must be consumed all at once.
desired_address: Option<Principal>
Address of the receiver, if different to sender.
Implementations§
§impl SupplyParameters
impl SupplyParameters
pub fn new( controller: Option<ContractId>, take_all: bool, desired_address: Option<Principal> ) -> Self
Trait Implementations§
§impl CandidType for SupplyParameters
impl CandidType for SupplyParameters
§impl Clone for SupplyParameters
impl Clone for SupplyParameters
§fn clone(&self) -> SupplyParameters
fn clone(&self) -> SupplyParameters
Returns a copy 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 more§impl Debug for SupplyParameters
impl Debug for SupplyParameters
§impl<'de> Deserialize<'de> for SupplyParameters
impl<'de> Deserialize<'de> for SupplyParameters
§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
§impl Serialize for SupplyParameters
impl Serialize for SupplyParameters
Auto Trait Implementations§
impl Freeze for SupplyParameters
impl RefUnwindSafe for SupplyParameters
impl Send for SupplyParameters
impl Sync for SupplyParameters
impl Unpin for SupplyParameters
impl UnwindSafe for SupplyParameters
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