pub struct ValidationResult {
pub is_valid: bool,
pub schema_version: u32,
pub backup_date: DateTime<Utc>,
pub has_accounts: bool,
pub has_transactions: bool,
pub has_budget: bool,
pub has_payees: bool,
}Expand description
Result of validating a backup
Fields§
§is_valid: boolWhether the backup file is valid
schema_version: u32Schema version of the backup
backup_date: DateTime<Utc>Date the backup was created
has_accounts: boolWhether backup contains accounts data
has_transactions: boolWhether backup contains transactions data
has_budget: boolWhether backup contains budget data
has_payees: boolWhether backup contains payees data
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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