Struct bee_message::prelude::RegularEssenceBuilder
source · [−]pub struct RegularEssenceBuilder { /* private fields */ }
Expand description
A builder to build a RegularEssence
.
Implementations
sourceimpl 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
sourceimpl Debug for RegularEssenceBuilder
impl Debug for RegularEssenceBuilder
sourceimpl Default for RegularEssenceBuilder
impl Default for RegularEssenceBuilder
sourcefn default() -> RegularEssenceBuilder
fn default() -> RegularEssenceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RegularEssenceBuilder
impl Send for RegularEssenceBuilder
impl Sync for RegularEssenceBuilder
impl Unpin for RegularEssenceBuilder
impl UnwindSafe for RegularEssenceBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more