pub struct GeneralLedgerParams {Show 16 fields
pub customer: Option<Vec<CustomerId>>,
pub account: Option<Vec<AccountId>>,
pub accounting_method: Option<AccountingMethod>,
pub source_account: Option<Vec<AccountId>>,
pub end_date: Option<NaiveDate>,
pub date_macro: Option<DateMacro>,
pub account_type: Option<String>,
pub sort_by: Option<String>,
pub sort_order: Option<SortOrder>,
pub start_date: Option<NaiveDate>,
pub summarize_column_by: Option<SummarizeColumnBy>,
pub class: Option<String>,
pub item: Option<Vec<ItemId>>,
pub department: Option<String>,
pub vendor: Option<Vec<VendorId>>,
pub columns: Option<Vec<String>>,
}Expand description
Parameters for the GeneralLedger report.
Fields§
§customer: Option<Vec<CustomerId>>§account: Option<Vec<AccountId>>§accounting_method: Option<AccountingMethod>§source_account: Option<Vec<AccountId>>§end_date: Option<NaiveDate>§date_macro: Option<DateMacro>§account_type: Option<String>§sort_by: Option<String>§sort_order: Option<SortOrder>§start_date: Option<NaiveDate>§summarize_column_by: Option<SummarizeColumnBy>§class: Option<String>§item: Option<Vec<ItemId>>§department: Option<String>§vendor: Option<Vec<VendorId>>§columns: Option<Vec<String>>Implementations§
Source§impl GeneralLedgerParams
impl GeneralLedgerParams
pub fn new() -> Self
pub fn customer(self, param: impl Into<CustomerId>) -> Self
pub fn customers(self, params: Vec<CustomerId>) -> Self
pub fn account(self, param: impl Into<AccountId>) -> Self
pub fn accounts(self, params: Vec<AccountId>) -> Self
pub fn accounting_method(self, param: impl Into<AccountingMethod>) -> Self
pub fn source_account(self, param: impl Into<AccountId>) -> Self
pub fn source_accounts(self, params: Vec<AccountId>) -> Self
pub fn end_date(self, param: impl Into<NaiveDate>) -> Self
pub fn date_macro(self, param: impl Into<DateMacro>) -> Self
pub fn account_type(self, param: impl Into<String>) -> Self
pub fn sort_by(self, param: impl Into<String>) -> Self
pub fn sort_order(self, param: impl Into<SortOrder>) -> Self
pub fn start_date(self, param: impl Into<NaiveDate>) -> Self
pub fn summarize_column_by(self, param: impl Into<SummarizeColumnBy>) -> Self
pub fn class(self, param: impl Into<String>) -> Self
pub fn item(self, param: impl Into<ItemId>) -> Self
pub fn items(self, params: Vec<ItemId>) -> Self
pub fn department(self, param: impl Into<String>) -> Self
pub fn vendor(self, param: impl Into<VendorId>) -> Self
pub fn vendors(self, params: Vec<VendorId>) -> Self
pub fn columns(self, params: Vec<String>) -> Self
pub fn column(self, param: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for GeneralLedgerParams
impl Debug for GeneralLedgerParams
Source§impl Default for GeneralLedgerParams
impl Default for GeneralLedgerParams
Source§fn default() -> GeneralLedgerParams
fn default() -> GeneralLedgerParams
Returns the “default value” for a type. Read more
Source§impl QBReportParams for GeneralLedgerParams
impl QBReportParams for GeneralLedgerParams
Auto Trait Implementations§
impl Freeze for GeneralLedgerParams
impl RefUnwindSafe for GeneralLedgerParams
impl Send for GeneralLedgerParams
impl Sync for GeneralLedgerParams
impl Unpin for GeneralLedgerParams
impl UnwindSafe for GeneralLedgerParams
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