pub struct UpdateChannelRequest {
pub category_id: Option<u32>,
pub stream_title: Option<String>,
pub custom_tags: Option<Vec<String>>,
}Expand description
Request body for updating channel/livestream metadata
At least one field must be specified. Requires channel:write scope.
§Example
let update = kick_api::UpdateChannelRequest {
category_id: None,
stream_title: Some("New stream title!".to_string()),
custom_tags: Some(vec!["rust".to_string(), "coding".to_string()]),
};Fields§
§category_id: Option<u32>Category ID to set for the stream (minimum 1)
stream_title: Option<String>Stream title (minimum 1 character)
Custom tags for the stream (maximum 10)
Trait Implementations§
Source§impl Clone for UpdateChannelRequest
impl Clone for UpdateChannelRequest
Source§fn clone(&self) -> UpdateChannelRequest
fn clone(&self) -> UpdateChannelRequest
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 Debug for UpdateChannelRequest
impl Debug for UpdateChannelRequest
Source§impl<'de> Deserialize<'de> for UpdateChannelRequest
impl<'de> Deserialize<'de> for UpdateChannelRequest
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 UpdateChannelRequest
impl RefUnwindSafe for UpdateChannelRequest
impl Send for UpdateChannelRequest
impl Sync for UpdateChannelRequest
impl Unpin for UpdateChannelRequest
impl UnsafeUnpin for UpdateChannelRequest
impl UnwindSafe for UpdateChannelRequest
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