#[non_exhaustive]pub struct SearchChannelsRequest<'a> {
pub query: Cow<'a, str>,
pub after: Option<Cow<'a, CursorRef>>,
pub first: Option<usize>,
pub live_only: Option<bool>,
}
Available on crate feature
helix
only.Expand description
Query Parameters for Search Channels
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.query: Cow<'a, str>
URL encoded search query
after: Option<Cow<'a, CursorRef>>
Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
first: Option<usize>
Maximum number of objects to return. Maximum: 100 Default: 20
live_only: Option<bool>
Filter results for live streams only. Default: false
Implementations§
Source§impl<'a> SearchChannelsRequest<'a>
impl<'a> SearchChannelsRequest<'a>
Sourcepub fn builder() -> SearchChannelsRequestBuilder<'a, ((), (), (), ())>
pub fn builder() -> SearchChannelsRequestBuilder<'a, ((), (), (), ())>
Create a builder for building SearchChannelsRequest
.
On the builder, call .query(...)
, .after(...)
(optional), .first(...)
(optional), .live_only(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SearchChannelsRequest
.
Source§impl<'a> SearchChannelsRequest<'a>
impl<'a> SearchChannelsRequest<'a>
Trait Implementations§
Source§impl<'a> Clone for SearchChannelsRequest<'a>
impl<'a> Clone for SearchChannelsRequest<'a>
Source§fn clone(&self) -> SearchChannelsRequest<'a>
fn clone(&self) -> SearchChannelsRequest<'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 SearchChannelsRequest<'a>
impl<'a> Debug for SearchChannelsRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for SearchChannelsRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SearchChannelsRequest<'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 Paginated for SearchChannelsRequest<'_>
impl Paginated for SearchChannelsRequest<'_>
Source§impl<'a> PartialEq for SearchChannelsRequest<'a>
impl<'a> PartialEq for SearchChannelsRequest<'a>
Source§impl Request for SearchChannelsRequest<'_>
impl Request for SearchChannelsRequest<'_>
Source§const PATH: &'static str = "search/channels"
const PATH: &'static str = "search/channels"
The path to the endpoint relative to the helix root. eg.
channels
for Get Channel InformationSource§const SCOPE: Validator
const SCOPE: Validator
Available on crate feature
twitch_oauth2
only.Scopes needed for this endpoint
Source§const OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
Available on crate feature
twitch_oauth2
only.Optional scopes needed by this endpoint
Source§fn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Returns full URI for the request, including query parameters.
Source§fn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Returns bare URI for the request, NOT including query parameters.
Source§impl RequestGet for SearchChannelsRequest<'_>
impl RequestGet for SearchChannelsRequest<'_>
Source§fn create_request(
&self,
token: &str,
client_id: &str,
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request( &self, token: &str, client_id: &str, ) -> Result<Request<Bytes>, CreateRequestError>
Create a
http::Request
from this Request
in your clientSource§fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
Parse response. Read more
Source§fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
Parse a response string into the response.
Source§impl<'a> Serialize for SearchChannelsRequest<'a>
impl<'a> Serialize for SearchChannelsRequest<'a>
impl<'a> Eq for SearchChannelsRequest<'a>
impl<'a> StructuralPartialEq for SearchChannelsRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for SearchChannelsRequest<'a>
impl<'a> RefUnwindSafe for SearchChannelsRequest<'a>
impl<'a> Send for SearchChannelsRequest<'a>
impl<'a> Sync for SearchChannelsRequest<'a>
impl<'a> Unpin for SearchChannelsRequest<'a>
impl<'a> UnwindSafe for SearchChannelsRequest<'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