pub struct SearchPostsRequest {
pub terms: String,
pub is_or_search: bool,
pub time_zone_offset: Option<i32>,
pub include_deleted_channels: Option<bool>,
pub page: Option<i32>,
pub per_page: Option<i32>,
}
Fields§
§terms: String
The search terms as inputed by the user. To search for posts from a user include from:someusername
, using a user’s username. To search in a specific channel include in:somechannel
, using the channel name (not the display name).
is_or_search: bool
Set to true if an Or search should be performed vs an And search.
time_zone_offset: Option<i32>
Offset from UTC of user timezone for date searches.
include_deleted_channels: Option<bool>
Set to true if deleted channels should be included in the search. (archived channels)
page: Option<i32>
The page to select. (Only works with Elasticsearch)
per_page: Option<i32>
The number of posts per page. (Only works with Elasticsearch)
Implementations§
Source§impl SearchPostsRequest
impl SearchPostsRequest
pub fn new(terms: String, is_or_search: bool) -> SearchPostsRequest
Trait Implementations§
Source§impl Clone for SearchPostsRequest
impl Clone for SearchPostsRequest
Source§fn clone(&self) -> SearchPostsRequest
fn clone(&self) -> SearchPostsRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SearchPostsRequest
impl Debug for SearchPostsRequest
Source§impl Default for SearchPostsRequest
impl Default for SearchPostsRequest
Source§fn default() -> SearchPostsRequest
fn default() -> SearchPostsRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchPostsRequest
impl<'de> Deserialize<'de> for SearchPostsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SearchPostsRequest
impl PartialEq for SearchPostsRequest
Source§impl Serialize for SearchPostsRequest
impl Serialize for SearchPostsRequest
impl StructuralPartialEq for SearchPostsRequest
Auto Trait Implementations§
impl Freeze for SearchPostsRequest
impl RefUnwindSafe for SearchPostsRequest
impl Send for SearchPostsRequest
impl Sync for SearchPostsRequest
impl Unpin for SearchPostsRequest
impl UnwindSafe for SearchPostsRequest
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