pub struct Transactions { /* private fields */ }Implementations§
Source§impl Transactions
impl Transactions
pub fn new(client: Client) -> Transactions
pub fn all(&self) -> Result<Vec<Transaction>>
pub fn all_params<I, K, V>(&self, parameters: I) -> Result<Vec<Transaction>>
pub fn create(&self, transactions: Vec<&str>) -> Result<Transaction>
pub fn show(&self, id: &str) -> Result<Transaction>
pub fn all_unconfirmed(&self) -> Result<Vec<Transaction>>
pub fn all_unconfirmed_params<I, K, V>( &self, parameters: I, ) -> Result<Vec<Transaction>>
pub fn show_unconfirmed(&self, id: &str) -> Result<Vec<Transaction>>
pub fn search<I, K, V>( &self, payload: Option<HashMap<&str, &str>>, parameters: I, ) -> Result<Vec<Transaction>>
Sourcepub fn types(&self) -> Result<TransactionTypes>
pub fn types(&self) -> Result<TransactionTypes>
Returns the transaction types and their ID
§Example
let types = client.transactions.types().unwrap();
println!("{}", to_string_pretty(&types).unwrap());Sourcepub fn fees(&self) -> Result<TransactionFees>
pub fn fees(&self) -> Result<TransactionFees>
Returns the static fees of the last block processed by the node
§Example
let fees = client.transactions.fees().unwrap();
println!("{}", to_string_pretty(&fees).unwrap());Auto Trait Implementations§
impl Freeze for Transactions
impl !RefUnwindSafe for Transactions
impl Send for Transactions
impl Sync for Transactions
impl Unpin for Transactions
impl !UnwindSafe for Transactions
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more