pub struct CellInput {
pub since: Uint64,
pub previous_output: OutPoint,
}Expand description
The input cell of a transaction.
§Examples
{
"previous_output": {
"index": "0x0",
"tx_hash": "0x365698b50ca0da75dca2c87f9e7b563811d3b5813736b8cc62cc3b106faceb17"
},
"since": "0x0"
}Fields§
§since: Uint64Restrict when the transaction can be committed into the chain.
See the RFC Transaction valid since.
previous_output: OutPointReference to the input cell.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellInput
impl<'de> Deserialize<'de> for CellInput
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 JsonSchema for CellInput
impl JsonSchema for CellInput
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Eq for CellInput
impl StructuralPartialEq for CellInput
Auto Trait Implementations§
impl Freeze for CellInput
impl RefUnwindSafe for CellInput
impl Send for CellInput
impl Sync for CellInput
impl Unpin for CellInput
impl UnsafeUnpin for CellInput
impl UnwindSafe for CellInput
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