pub struct TransactionInputs { /* private fields */ }
Implementations§
source§impl TransactionInputs
impl TransactionInputs
pub fn from_bytes(bytes: Vec<u8>) -> Result<TransactionInputs, DeserializeError>
source§impl TransactionInputs
impl TransactionInputs
pub fn from_hex(hex_str: &str) -> Result<TransactionInputs, DeserializeError>
source§impl TransactionInputs
impl TransactionInputs
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn get(&self, index: usize) -> TransactionInput
sourcepub fn add(&mut self, elem: &TransactionInput) -> bool
pub fn add(&mut self, elem: &TransactionInput) -> bool
Add a new TransactionInput
to the set.
Returns true
if the element was not already present in the set.
Note that the TransactionInput
is added to the set only if it is not already present.
pub fn to_option(&self) -> Option<TransactionInputs>
Trait Implementations§
source§impl Clone for TransactionInputs
impl Clone for TransactionInputs
source§fn clone(&self) -> TransactionInputs
fn clone(&self) -> TransactionInputs
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 TransactionInputs
impl Debug for TransactionInputs
source§impl<'de> Deserialize<'de> for TransactionInputs
impl<'de> Deserialize<'de> for TransactionInputs
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<'a> IntoIterator for &'a TransactionInputs
impl<'a> IntoIterator for &'a TransactionInputs
source§impl IntoIterator for TransactionInputs
impl IntoIterator for TransactionInputs
source§impl JsonSchema for TransactionInputs
impl JsonSchema for TransactionInputs
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. 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 NoneOrEmpty for TransactionInputs
impl NoneOrEmpty for TransactionInputs
fn is_none_or_empty(&self) -> bool
source§impl Ord for TransactionInputs
impl Ord for TransactionInputs
source§fn cmp(&self, other: &TransactionInputs) -> Ordering
fn cmp(&self, other: &TransactionInputs) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TransactionInputs
impl PartialEq for TransactionInputs
source§impl PartialOrd for TransactionInputs
impl PartialOrd for TransactionInputs
source§impl Serialize for TransactionInputs
impl Serialize for TransactionInputs
source§impl Serialize for TransactionInputs
impl Serialize for TransactionInputs
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Eq for TransactionInputs
impl StructuralPartialEq for TransactionInputs
Auto Trait Implementations§
impl Freeze for TransactionInputs
impl RefUnwindSafe for TransactionInputs
impl Send for TransactionInputs
impl Sync for TransactionInputs
impl Unpin for TransactionInputs
impl UnwindSafe for TransactionInputs
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
)