Struct twitch_api::helix::search::search_channels::Channel
source · [−]#[non_exhaustive]pub struct Channel {
pub game_id: CategoryId,
pub game_name: String,
pub id: UserId,
pub display_name: DisplayName,
pub broadcaster_language: String,
pub broadcaster_login: UserName,
pub title: String,
pub thumbnail_url: String,
pub is_live: bool,
pub started_at: Option<Timestamp>,
pub tag_ids: Vec<TagId>,
}
Available on crate feature
helix
only.Expand description
Return Values 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.game_id: CategoryId
ID of the game being played on the stream
game_name: String
Name of the game being played on the stream.
id: UserId
Channel ID
display_name: DisplayName
Display name corresponding to user_id
broadcaster_language: String
Channel language (Broadcaster Language field from the Channels service)
broadcaster_login: UserName
Login of the broadcaster.
title: String
channel title
thumbnail_url: String
Thumbnail URL of the stream. All image URLs have variable width and height. You can replace {width} and {height} with any values to get that size image.
is_live: bool
Live status
started_at: Option<Timestamp>
UTC timestamp. (live only)
tag_ids: Vec<TagId>
Shows tag IDs that apply to the stream (live only).See https://www.twitch.tv/directory/all/tags for tag types
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
sourcefn 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
impl Eq for Channel
impl StructuralEq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.