Struct off_blockway::transaction::Transaction
[−]
[src]
pub struct Transaction { /* fields omitted */ }
Methods
impl Transaction
[src]
fn new(
uid: u64,
username: String,
content: String,
timestamp: String,
status: String
) -> Self
[src]
uid: u64,
username: String,
content: String,
timestamp: String,
status: String
) -> Self
fn write_to(&self, filename: &str) -> Result<(), Error>
[src]
fn read_json(filename: &str) -> Result<String, Error>
[src]
fn read_and_construct(filename: &str) -> Result<Transaction, Error>
[src]
fn get_value(&self) -> &String
[src]
fn verify(&mut self)
[src]
Trait Implementations
impl PartialEq for Transaction
[src]
fn eq(&self, __arg_0: &Transaction) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Transaction) -> bool
[src]
This method tests for !=
.
impl Debug for Transaction
[src]
impl Clone for Transaction
[src]
fn clone(&self) -> Transaction
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more