pub struct FetchOptions {
pub all: bool,
pub band: Option<String>,
pub mode: Option<String>,
pub call: Option<String>,
pub max: Option<u32>,
pub after_logid: Option<u64>,
pub date_from: Option<NaiveDate>,
pub date_to: Option<NaiveDate>,
}Expand description
Fetch options for filtering QSOs
Fields§
§all: boolFetch all records
band: Option<String>Filter by band
mode: Option<String>Filter by mode
call: Option<String>Filter by callsign
max: Option<u32>Maximum number of records to return
after_logid: Option<u64>Start after this logid for paging
date_from: Option<NaiveDate>Filter by date range (start)
date_to: Option<NaiveDate>Filter by date range (end)
Implementations§
Source§impl FetchOptions
impl FetchOptions
pub fn new() -> Self
pub fn all() -> Self
pub fn band(self, band: impl Into<String>) -> Self
pub fn mode(self, mode: impl Into<String>) -> Self
pub fn call(self, call: impl Into<String>) -> Self
pub fn max(self, max: u32) -> Self
pub fn after_logid(self, logid: u64) -> Self
pub fn date_range(self, from: NaiveDate, to: NaiveDate) -> Self
Sourcepub fn to_option_string(&self) -> String
pub fn to_option_string(&self) -> String
Convert to API option string
Trait Implementations§
Source§impl Clone for FetchOptions
impl Clone for FetchOptions
Source§fn clone(&self) -> FetchOptions
fn clone(&self) -> FetchOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FetchOptions
impl Debug for FetchOptions
Source§impl Default for FetchOptions
impl Default for FetchOptions
Source§fn default() -> FetchOptions
fn default() -> FetchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FetchOptions
impl RefUnwindSafe for FetchOptions
impl Send for FetchOptions
impl Sync for FetchOptions
impl Unpin for FetchOptions
impl UnsafeUnpin for FetchOptions
impl UnwindSafe for FetchOptions
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