pub struct SearchArticleParams { /* private fields */ }Expand description
专栏搜索参数。
Implementations§
Source§impl SearchArticleParams
impl SearchArticleParams
pub fn new(keyword: impl Into<String>) -> BpiResult<Self>
pub fn with_order(self, order: SearchOrder) -> Self
pub fn with_category_id(self, category_id: CategoryId) -> Self
pub fn with_page(self, page: u32) -> BpiResult<Self>
Trait Implementations§
Source§impl Clone for SearchArticleParams
impl Clone for SearchArticleParams
Source§fn clone(&self) -> SearchArticleParams
fn clone(&self) -> SearchArticleParams
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 SearchArticleParams
impl Debug for SearchArticleParams
impl Eq for SearchArticleParams
Source§impl PartialEq for SearchArticleParams
impl PartialEq for SearchArticleParams
Source§fn eq(&self, other: &SearchArticleParams) -> bool
fn eq(&self, other: &SearchArticleParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchArticleParams
Auto Trait Implementations§
impl Freeze for SearchArticleParams
impl RefUnwindSafe for SearchArticleParams
impl Send for SearchArticleParams
impl Sync for SearchArticleParams
impl Unpin for SearchArticleParams
impl UnsafeUnpin for SearchArticleParams
impl UnwindSafe for SearchArticleParams
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