Struct ckb_types::packed::CellOutputBuilder
source · pub struct CellOutputBuilder { /* private fields */ }
Implementations§
source§impl CellOutputBuilder
impl CellOutputBuilder
sourcepub fn build_exact_capacity(
self,
data_capacity: Capacity
) -> Result<CellOutput, Error>
pub fn build_exact_capacity( self, data_capacity: Capacity ) -> Result<CellOutput, Error>
Build a CellOutput
and sets its capacity
equal to its occupied capacity
exactly.
source§impl CellOutputBuilder
impl CellOutputBuilder
pub const FIELD_COUNT: usize = 3usize
pub fn capacity(self, v: Uint64) -> CellOutputBuilder
pub fn lock(self, v: Script) -> CellOutputBuilder
pub fn type_(self, v: ScriptOpt) -> CellOutputBuilder
Trait Implementations§
source§impl Builder for CellOutputBuilder
impl Builder for CellOutputBuilder
source§impl Debug for CellOutputBuilder
impl Debug for CellOutputBuilder
source§impl Default for CellOutputBuilder
impl Default for CellOutputBuilder
source§fn default() -> CellOutputBuilder
fn default() -> CellOutputBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CellOutputBuilder
impl Send for CellOutputBuilder
impl Sync for CellOutputBuilder
impl Unpin for CellOutputBuilder
impl UnwindSafe for CellOutputBuilder
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