pub struct StoredContract {
pub contract_type: ContractType,
pub contract_version: u32,
pub script_pubkey: ScriptBuf,
pub state: ContractState,
pub created_at: u64,
pub key_index: Option<u32>,
pub data: Value,
}Fields§
§contract_type: ContractType§contract_version: u32§script_pubkey: ScriptBuf§state: ContractState§created_at: u64§key_index: Option<u32>HD derivation index for contracts generated by an index-based key provider.
Static/custom providers may not expose an index, and imported contracts may not have one.
data: ValueTrait Implementations§
Source§impl Clone for StoredContract
impl Clone for StoredContract
Source§fn clone(&self) -> StoredContract
fn clone(&self) -> StoredContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoredContract
impl Debug for StoredContract
Source§impl<'de> Deserialize<'de> for StoredContract
impl<'de> Deserialize<'de> for StoredContract
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
impl Eq for StoredContract
Source§impl PartialEq for StoredContract
impl PartialEq for StoredContract
Source§fn eq(&self, other: &StoredContract) -> bool
fn eq(&self, other: &StoredContract) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StoredContract
impl Serialize for StoredContract
impl StructuralPartialEq for StoredContract
Auto Trait Implementations§
impl Freeze for StoredContract
impl RefUnwindSafe for StoredContract
impl Send for StoredContract
impl Sync for StoredContract
impl Unpin for StoredContract
impl UnsafeUnpin for StoredContract
impl UnwindSafe for StoredContract
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