Struct bee_message::payload::transaction::RegularEssenceBuilder
source · pub struct RegularEssenceBuilder { /* private fields */ }Expand description
A builder to build a RegularEssence.
Implementations§
source§impl RegularEssenceBuilder
impl RegularEssenceBuilder
sourcepub fn with_inputs(self, inputs: Vec<Input>) -> Self
pub fn with_inputs(self, inputs: Vec<Input>) -> Self
Adds inputs to a RegularEssenceBuilder
sourcepub fn with_outputs(self, outputs: Vec<Output>) -> Self
pub fn with_outputs(self, outputs: Vec<Output>) -> Self
Add outputs to a RegularEssenceBuilder.
sourcepub fn add_output(self, output: Output) -> Self
pub fn add_output(self, output: Output) -> Self
Add an output to a RegularEssenceBuilder.
sourcepub fn with_payload(self, payload: Payload) -> Self
pub fn with_payload(self, payload: Payload) -> Self
Add a payload to a RegularEssenceBuilder.
sourcepub fn finish(self) -> Result<RegularEssence, Error>
pub fn finish(self) -> Result<RegularEssence, Error>
Finishes a RegularEssenceBuilder into a RegularEssence.
Trait Implementations§
source§impl Debug for RegularEssenceBuilder
impl Debug for RegularEssenceBuilder
source§impl Default for RegularEssenceBuilder
impl Default for RegularEssenceBuilder
source§fn default() -> RegularEssenceBuilder
fn default() -> RegularEssenceBuilder
Returns the “default value” for a type. Read more