pub struct Channel {
pub active_subscribers_count: u32,
pub banner_picture: Option<String>,
pub broadcaster_user_id: u32,
pub canceled_subscribers_count: u32,
pub category: Option<Category>,
pub channel_description: Option<String>,
pub slug: String,
pub stream: Option<Stream>,
pub stream_title: Option<String>,
}Expand description
Channel information
Returned when fetching channel data via the /channels endpoint
§Example Response
{
"broadcaster_user_id": 123456,
"slug": "xqc",
"stream_title": "LIVE NOW",
"channel_description": "Welcome to my channel!"
}Fields§
§active_subscribers_count: u32Number of active subscribers
Banner picture URL
broadcaster_user_id: u32Unique broadcaster user identifier
canceled_subscribers_count: u32Number of canceled subscribers
category: Option<Category>Current stream category
channel_description: Option<String>Channel description text
slug: StringChannel URL slug (unique username)
stream: Option<Stream>Current stream information (if live)
stream_title: Option<String>Current stream title
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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