Struct bp7::bundle::BundleBuilder
source · pub struct BundleBuilder { /* private fields */ }
Implementations§
source§impl BundleBuilder
impl BundleBuilder
pub fn new() -> Self
pub fn primary(self, primary: PrimaryBlock) -> Self
pub fn canonicals(self, canonicals: Vec<CanonicalBlock>) -> Self
pub fn payload(self, payload: ByteBuffer) -> Self
pub fn build(self) -> Result<Bundle, BundleBuilderError>
Trait Implementations§
source§impl Clone for BundleBuilder
impl Clone for BundleBuilder
source§fn clone(&self) -> BundleBuilder
fn clone(&self) -> BundleBuilder
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 moresource§impl Debug for BundleBuilder
impl Debug for BundleBuilder
source§impl Default for BundleBuilder
impl Default for BundleBuilder
source§fn default() -> BundleBuilder
fn default() -> BundleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BundleBuilder
impl PartialEq for BundleBuilder
source§fn eq(&self, other: &BundleBuilder) -> bool
fn eq(&self, other: &BundleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BundleBuilder
Auto Trait Implementations§
impl RefUnwindSafe for BundleBuilder
impl Send for BundleBuilder
impl Sync for BundleBuilder
impl Unpin for BundleBuilder
impl UnwindSafe for BundleBuilder
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