pub struct SearchGetPreviewsRequest {
pub search: String,
pub restypes: Option<List<u32>>,
pub order_by: Option<String>,
pub archive: Option<i8>,
pub fetchrows: Option<FetchRows>,
pub sort: Option<SortOrder>,
pub recent_search_daylimit: Option<String>,
pub getsizes: Option<List<u32>>,
pub previewext: Option<String>,
}Fields§
§search: StringThe search string to match resources against.
restypes: Option<List<u32>>Comma-separated list of resource type IDs to restrict results to.
order_by: Option<String>Field name to order results by.
archive: Option<i8>Archive status filter: 0 = live, 1 = archived, 2 = deleted.
fetchrows: Option<FetchRows>Number of rows to return, or "offset,rows" for paginated fetching.
sort: Option<SortOrder>Sort direction for the results.
recent_search_daylimit: Option<String>Only return resources modified within this many days.
getsizes: Option<List<u32>>Comma-separated list of preview sizes to include URLs for (e.g. "thm,scr,pre").
previewext: Option<String>Override the preview file extension returned (e.g. "jpg").
Implementations§
Source§impl SearchGetPreviewsRequest
impl SearchGetPreviewsRequest
pub fn new(search: impl Into<String>) -> Self
pub fn restypes(self, restypes: impl Into<List<u32>>) -> Self
pub fn order_by(self, order_by: impl Into<String>) -> Self
pub fn archive(self, archive: i8) -> Self
pub fn fetchrows(self, fetchrows: FetchRows) -> Self
pub fn sort(self, sort: SortOrder) -> Self
pub fn recent_search_daylimit( self, recent_search_daylimit: impl Into<String>, ) -> Self
pub fn getsizes(self, getsizes: impl Into<List<u32>>) -> Self
pub fn previewext(self, previewext: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SearchGetPreviewsRequest
impl Clone for SearchGetPreviewsRequest
Source§fn clone(&self) -> SearchGetPreviewsRequest
fn clone(&self) -> SearchGetPreviewsRequest
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 SearchGetPreviewsRequest
impl Debug for SearchGetPreviewsRequest
Source§impl PartialEq for SearchGetPreviewsRequest
impl PartialEq for SearchGetPreviewsRequest
Source§impl Serialize for SearchGetPreviewsRequest
impl Serialize for SearchGetPreviewsRequest
impl StructuralPartialEq for SearchGetPreviewsRequest
Auto Trait Implementations§
impl Freeze for SearchGetPreviewsRequest
impl RefUnwindSafe for SearchGetPreviewsRequest
impl Send for SearchGetPreviewsRequest
impl Sync for SearchGetPreviewsRequest
impl Unpin for SearchGetPreviewsRequest
impl UnsafeUnpin for SearchGetPreviewsRequest
impl UnwindSafe for SearchGetPreviewsRequest
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