use ::internal::prelude::*;
#[derive(Clone, Debug, Default)]
pub struct EditChannel(pub JsonMap);
impl EditChannel {
pub fn bitrate(mut self, bitrate: u64) -> Self {
self.0.insert("bitrate".to_owned(), Value::Number(Number::from(bitrate)));
self
}
pub fn name(mut self, name: &str) -> Self {
self.0.insert("name".to_owned(), Value::String(name.to_owned()));
self
}
pub fn position(mut self, position: u64) -> Self {
self.0.insert("position".to_owned(), Value::Number(Number::from(position)));
self
}
pub fn topic(mut self, topic: &str) -> Self {
self.0.insert("topic".to_owned(), Value::String(topic.to_owned()));
self
}
pub fn user_limit(mut self, user_limit: u64) -> Self {
self.0.insert("user_limit".to_owned(), Value::Number(Number::from(user_limit)));
self
}
}