pub struct Settings {
pub audit_mode: bool,
pub report: Report,
pub export: Export,
/* private fields */
}Fields§
§audit_mode: bool§report: Report§export: ExportImplementations§
Source§impl Settings
impl Settings
pub fn default_audit() -> Self
Source§impl Settings
impl Settings
pub fn get_hash(&self) -> Option<Hash>
pub fn get_txn_account( &mut self, name: &str, commodity: Arc<Commodity>, ) -> Result<TxnAccount, Box<dyn Error>>
pub fn get_commodity( &mut self, name: Option<&str>, ) -> Result<Arc<Commodity>, Box<dyn Error>>
pub fn get_tag(&mut self, name: &str) -> Result<Arc<Tag>, Box<dyn Error>>
pub fn get_input_settings( &self, storage: Option<&String>, ref_path: Option<&Path>, ) -> Result<InputSettings, Box<dyn Error>>
Source§impl Settings
impl Settings
pub fn get_offset_datetime( &self, dt: PrimitiveDateTime, ) -> Result<OffsetDateTime, Box<dyn Error>>
pub fn get_offset_date( &self, date: Date, ) -> Result<OffsetDateTime, Box<dyn Error>>
pub fn get_report_targets( &self, arg_trgs: Option<Vec<String>>, ) -> Result<Vec<ReportType>, Box<dyn Error>>
pub fn get_balance_ras(&self) -> Vec<String>
pub fn get_balance_group_ras(&self) -> Vec<String>
pub fn get_register_ras(&self) -> Vec<String>
pub fn get_equity_ras(&self) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl !RefUnwindSafe for Settings
impl !Send for Settings
impl !Sync for Settings
impl Unpin for Settings
impl !UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
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