pub struct SearchPosts<'a> {
pub author: Option<AtIdentifier<'a>>,
pub cursor: Option<CowStr<'a>>,
pub domain: Option<CowStr<'a>>,
pub lang: Option<Language>,
pub limit: Option<i64>,
pub mentions: Option<AtIdentifier<'a>>,
pub q: CowStr<'a>,
pub since: Option<CowStr<'a>>,
pub sort: Option<CowStr<'a>>,
pub tag: Option<Vec<CowStr<'a>>>,
pub until: Option<CowStr<'a>>,
pub url: Option<Uri<'a>>,
}Fields§
§cursor: Option<CowStr<'a>>§domain: Option<CowStr<'a>>§lang: Option<Language>§limit: Option<i64>(default: 25, min: 1, max: 100)
mentions: Option<AtIdentifier<'a>>§q: CowStr<'a>§since: Option<CowStr<'a>>§sort: Option<CowStr<'a>>(default: “latest”)
tag: Option<Vec<CowStr<'a>>>§until: Option<CowStr<'a>>§url: Option<Uri<'a>>Implementations§
Source§impl<'a> SearchPosts<'a>
impl<'a> SearchPosts<'a>
Sourcepub fn new() -> SearchPostsBuilder<'a>
pub fn new() -> SearchPostsBuilder<'a>
Create an instance of SearchPosts using the builder syntax
Trait Implementations§
Source§impl<'a> Clone for SearchPosts<'a>
impl<'a> Clone for SearchPosts<'a>
Source§fn clone(&self) -> SearchPosts<'a>
fn clone(&self) -> SearchPosts<'a>
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<'a> Debug for SearchPosts<'a>
impl<'a> Debug for SearchPosts<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for SearchPosts<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SearchPosts<'a>
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 IntoStatic for SearchPosts<'_>
impl IntoStatic for SearchPosts<'_>
Source§type Output = SearchPosts<'static>
type Output = SearchPosts<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> PartialEq for SearchPosts<'a>
impl<'a> PartialEq for SearchPosts<'a>
Source§impl<'a> Serialize for SearchPosts<'a>
impl<'a> Serialize for SearchPosts<'a>
Source§impl XrpcRequest for SearchPosts<'_>
impl XrpcRequest for SearchPosts<'_>
Source§const METHOD: XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query
const METHOD: XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query
XRPC method (query/GET or procedure/POST)
Source§const OUTPUT_ENCODING: &'static str = "application/json"
const OUTPUT_ENCODING: &'static str = "application/json"
Output encoding (MIME type)
Source§type Output<'de> = SearchPostsOutput<'de>
type Output<'de> = SearchPostsOutput<'de>
Response output type
Source§type Err<'de> = SearchPostsError<'de>
type Err<'de> = SearchPostsError<'de>
Error type for this request
Source§fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
Encode the request body for procedures. Read more
impl<'a> Eq for SearchPosts<'a>
impl<'a> StructuralPartialEq for SearchPosts<'a>
Auto Trait Implementations§
impl<'a> Freeze for SearchPosts<'a>
impl<'a> RefUnwindSafe for SearchPosts<'a>
impl<'a> Send for SearchPosts<'a>
impl<'a> Sync for SearchPosts<'a>
impl<'a> Unpin for SearchPosts<'a>
impl<'a> UnwindSafe for SearchPosts<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.