pub struct FullExport {
pub schema_version: String,
pub exported_at: DateTime<Utc>,
pub app_version: String,
pub accounts: Vec<Account>,
pub category_groups: Vec<CategoryGroup>,
pub categories: Vec<Category>,
pub transactions: Vec<Transaction>,
pub allocations: Vec<BudgetAllocation>,
pub payees: Vec<Payee>,
pub metadata: ExportMetadata,
}Expand description
Full database export structure
Fields§
§schema_version: StringSchema version for compatibility checking
exported_at: DateTime<Utc>Export timestamp
app_version: StringApplication version that created the export
accounts: Vec<Account>All accounts
category_groups: Vec<CategoryGroup>All category groups
categories: Vec<Category>All categories
transactions: Vec<Transaction>All transactions
allocations: Vec<BudgetAllocation>All budget allocations
payees: Vec<Payee>All payees
metadata: ExportMetadataExport metadata
Implementations§
Source§impl FullExport
impl FullExport
Sourcepub fn from_storage(storage: &Storage) -> EnvelopeResult<Self>
pub fn from_storage(storage: &Storage) -> EnvelopeResult<Self>
Create a new full export from storage
Trait Implementations§
Source§impl Clone for FullExport
impl Clone for FullExport
Source§fn clone(&self) -> FullExport
fn clone(&self) -> FullExport
Returns a duplicate 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 FullExport
impl Debug for FullExport
Source§impl<'de> Deserialize<'de> for FullExport
impl<'de> Deserialize<'de> for FullExport
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 Freeze for FullExport
impl RefUnwindSafe for FullExport
impl Send for FullExport
impl Sync for FullExport
impl Unpin for FullExport
impl UnwindSafe for FullExport
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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