Struct ckb_jsonrpc_types::CellOutput
source · [−]Expand description
The fields of an output cell except the cell data.
Examples
{
"capacity": "0x2540be400",
"lock": {
"code_hash": "0x28e83a1277d48add8e72fadaa9248559e1b632bab2bd60b27955ebc4c03800a5",
"hash_type": "data",
"args": "0x"
},
"type": null
}Fields
capacity: CapacityThe cell capacity.
The capacity of a cell is the value of the cell in Shannons. It is also the upper limit of the cell occupied storage size where every 100,000,000 Shannons give 1-byte storage.
lock: ScriptThe lock script.
type_: Option<Script>The optional type script.
The JSON field name is “type”.
Trait Implementations
sourceimpl Clone for CellOutput
impl Clone for CellOutput
sourcefn clone(&self) -> CellOutput
fn clone(&self) -> CellOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CellOutput
impl Debug for CellOutput
sourceimpl Default for CellOutput
impl Default for CellOutput
sourcefn default() -> CellOutput
fn default() -> CellOutput
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CellOutput
impl<'de> Deserialize<'de> for CellOutput
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<CellOutput> for CellOutput
impl From<CellOutput> for CellOutput
sourcefn from(input: CellOutput) -> CellOutput
fn from(input: CellOutput) -> CellOutput
Converts to this type from the input type.
sourceimpl From<CellOutput> for CellOutput
impl From<CellOutput> for CellOutput
sourcefn from(json: CellOutput) -> Self
fn from(json: CellOutput) -> Self
Converts to this type from the input type.
sourceimpl Hash for CellOutput
impl Hash for CellOutput
sourceimpl PartialEq<CellOutput> for CellOutput
impl PartialEq<CellOutput> for CellOutput
sourcefn eq(&self, other: &CellOutput) -> bool
fn eq(&self, other: &CellOutput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CellOutput) -> bool
fn ne(&self, other: &CellOutput) -> bool
This method tests for !=.
sourceimpl Serialize for CellOutput
impl Serialize for CellOutput
impl Eq for CellOutput
impl StructuralEq for CellOutput
impl StructuralPartialEq for CellOutput
Auto Trait Implementations
impl RefUnwindSafe for CellOutput
impl Send for CellOutput
impl Sync for CellOutput
impl Unpin for CellOutput
impl UnwindSafe for CellOutput
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more