pub struct CellOutput {
pub capacity: Capacity,
pub lock: Script,
pub type_: Option<Script>,
}
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: Capacity
The 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: Script
The lock script.
type_: Option<Script>
The optional type script.
The JSON field name is “type”.
Trait Implementations§
Source§impl Clone for CellOutput
impl Clone for CellOutput
Source§fn clone(&self) -> CellOutput
fn clone(&self) -> CellOutput
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 CellOutput
impl Debug for CellOutput
Source§impl Default for CellOutput
impl Default for CellOutput
Source§fn default() -> CellOutput
fn default() -> CellOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CellOutput
impl<'de> Deserialize<'de> for CellOutput
Source§fn 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
Source§impl From<CellOutput> for CellOutput
impl From<CellOutput> for CellOutput
Source§fn from(input: CellOutput) -> CellOutput
fn from(input: CellOutput) -> CellOutput
Converts to this type from the input type.
Source§impl From<CellOutput> for CellOutput
impl From<CellOutput> for CellOutput
Source§fn from(json: CellOutput) -> Self
fn from(json: CellOutput) -> Self
Converts to this type from the input type.
Source§impl Hash for CellOutput
impl Hash for CellOutput
Source§impl JsonSchema for CellOutput
impl JsonSchema for CellOutput
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for CellOutput
impl PartialEq for CellOutput
Source§impl Serialize for CellOutput
impl Serialize for CellOutput
impl Eq for CellOutput
impl StructuralPartialEq for CellOutput
Auto Trait Implementations§
impl !Freeze for CellOutput
impl RefUnwindSafe for CellOutput
impl Send for CellOutput
impl Sync for CellOutput
impl Unpin for CellOutput
impl UnwindSafe for CellOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)