pub struct DocumentParams {
pub start: Option<String>,
pub end: Option<String>,
pub document_type: Option<StatementType>,
}Expand description
Document query parameters.
Fields§
§start: Option<String>Start date (YYYY-MM-DD).
end: Option<String>End date (YYYY-MM-DD).
document_type: Option<StatementType>Document type filter.
Implementations§
Source§impl DocumentParams
impl DocumentParams
Sourcepub fn new() -> DocumentParams
pub fn new() -> DocumentParams
Create new document params.
Sourcepub fn start(self, date: &str) -> DocumentParams
pub fn start(self, date: &str) -> DocumentParams
Set start date.
Sourcepub fn end(self, date: &str) -> DocumentParams
pub fn end(self, date: &str) -> DocumentParams
Set end date.
Sourcepub fn document_type(self, doc_type: StatementType) -> DocumentParams
pub fn document_type(self, doc_type: StatementType) -> DocumentParams
Set document type filter.
Trait Implementations§
Source§impl Clone for DocumentParams
impl Clone for DocumentParams
Source§fn clone(&self) -> DocumentParams
fn clone(&self) -> DocumentParams
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 DocumentParams
impl Debug for DocumentParams
Source§impl Default for DocumentParams
impl Default for DocumentParams
Source§fn default() -> DocumentParams
fn default() -> DocumentParams
Returns the “default value” for a type. Read more
Source§impl Serialize for DocumentParams
impl Serialize for DocumentParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DocumentParams
impl RefUnwindSafe for DocumentParams
impl Send for DocumentParams
impl Sync for DocumentParams
impl Unpin for DocumentParams
impl UnwindSafe for DocumentParams
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