pub struct BalanceSnapshot {
pub latest_block_id: BlockId,
pub latest_block_hash: SaitoHash,
pub timestamp: Timestamp,
pub slips: Vec<Slip>,
}
Fields§
§latest_block_id: BlockId
§latest_block_hash: SaitoHash
§timestamp: Timestamp
§slips: Vec<Slip>
Implementations§
Source§impl BalanceSnapshot
impl BalanceSnapshot
Sourcepub fn get_data(&self) -> (String, Vec<String>)
pub fn get_data(&self) -> (String, Vec<String>)
Converts the internal data into text format
Following is the file format
| Public Key | Block Id | Transaction Id | Slip Id | Amount |
Following is the file name format
§Parameters
None.
§Returns
This function returns a tuple containing:
- A
String
: File name - A
Vec<String>
: Rows of the file
pub fn get_file_name(&self) -> String
pub fn get_rows(&self) -> Vec<String>
pub fn new( file_name: String, rows: Vec<String>, ) -> Result<BalanceSnapshot, String>
Trait Implementations§
Source§impl Display for BalanceSnapshot
impl Display for BalanceSnapshot
Auto Trait Implementations§
impl Freeze for BalanceSnapshot
impl RefUnwindSafe for BalanceSnapshot
impl Send for BalanceSnapshot
impl Sync for BalanceSnapshot
impl Unpin for BalanceSnapshot
impl UnwindSafe for BalanceSnapshot
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