pub struct GetInvoicesParamsBuilder {
pub asset: Option<CryptoCurrencyCode>,
pub fiat: Option<FiatCurrencyCode>,
pub invoice_ids: Option<Vec<u64>>,
pub status: Option<InvoiceStatus>,
pub offset: Option<u32>,
pub count: Option<u16>,
}Fields§
§asset: Option<CryptoCurrencyCode>§fiat: Option<FiatCurrencyCode>§invoice_ids: Option<Vec<u64>>§status: Option<InvoiceStatus>§offset: Option<u32>§count: Option<u16>Implementations§
Source§impl GetInvoicesParamsBuilder
impl GetInvoicesParamsBuilder
Sourcepub fn asset(self, asset: CryptoCurrencyCode) -> Self
pub fn asset(self, asset: CryptoCurrencyCode) -> Self
Set the asset for the invoices. Optional. Defaults to all currencies.
Sourcepub fn fiat(self, fiat: FiatCurrencyCode) -> Self
pub fn fiat(self, fiat: FiatCurrencyCode) -> Self
Set the fiat for the invoices. Optional. Defaults to all currencies.
Sourcepub fn invoice_ids(self, invoice_ids: Vec<u64>) -> Self
pub fn invoice_ids(self, invoice_ids: Vec<u64>) -> Self
Set the invoice IDs for the invoices.
Sourcepub fn status(self, status: InvoiceStatus) -> Self
pub fn status(self, status: InvoiceStatus) -> Self
Set the status for the invoices. Optional. Defaults to all statuses.
Source§impl GetInvoicesParamsBuilder
impl GetInvoicesParamsBuilder
pub fn build(self) -> CryptoBotResult<GetInvoicesParams>
Trait Implementations§
Source§impl Debug for GetInvoicesParamsBuilder
impl Debug for GetInvoicesParamsBuilder
Source§impl Default for GetInvoicesParamsBuilder
impl Default for GetInvoicesParamsBuilder
Source§fn default() -> GetInvoicesParamsBuilder
fn default() -> GetInvoicesParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetInvoicesParamsBuilder
impl RefUnwindSafe for GetInvoicesParamsBuilder
impl Send for GetInvoicesParamsBuilder
impl Sync for GetInvoicesParamsBuilder
impl Unpin for GetInvoicesParamsBuilder
impl UnwindSafe for GetInvoicesParamsBuilder
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