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 !Freeze for CellOutputBuilder
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