Struct thor::cli::WalletState
source · pub struct WalletState {
pub pending_tx: Vec<Hash>,
pub public_key: String,
pub spending_counters: [u32; 8],
pub secret_file: PathBuf,
pub testing: bool,
pub value: u64,
}
Fields§
§pending_tx: Vec<Hash>
§public_key: String
§spending_counters: [u32; 8]
§secret_file: PathBuf
§testing: bool
§value: u64
Implementations§
source§impl WalletState
impl WalletState
pub fn address(&self) -> Result<Address, Error>
pub fn discrimination(&self) -> Discrimination
pub fn address_readable(&self) -> Result<AddressReadable, Error>
pub fn pk(&self) -> Result<PublicKey<Ed25519>, Error>
pub fn pk_bech32(&self) -> String
pub fn account_id(&self) -> Result<Identifier, Error>
pub fn id(&self) -> Result<String, Error>
Trait Implementations§
source§impl Clone for WalletState
impl Clone for WalletState
source§fn clone(&self) -> WalletState
fn clone(&self) -> WalletState
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 WalletState
impl Debug for WalletState
source§impl<'de> Deserialize<'de> for WalletState
impl<'de> Deserialize<'de> for WalletState
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
Auto Trait Implementations§
impl RefUnwindSafe for WalletState
impl Send for WalletState
impl Sync for WalletState
impl Unpin for WalletState
impl UnwindSafe for WalletState
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request