use crate::client::Bot;
use serde::Serialize;
#[derive(Clone, Debug, Serialize)]
pub struct SetStickerSetTitle {
pub name: Box<str>,
pub title: Box<str>,
}
impl SetStickerSetTitle {
#[must_use]
pub fn new<T0: Into<Box<str>>, T1: Into<Box<str>>>(name: T0, title: T1) -> Self {
Self {
name: name.into(),
title: title.into(),
}
}
#[must_use]
pub fn name<T: Into<Box<str>>>(self, val: T) -> Self {
let mut this = self;
this.name = val.into();
this
}
#[must_use]
pub fn title<T: Into<Box<str>>>(self, val: T) -> Self {
let mut this = self;
this.title = val.into();
this
}
}
impl super::TelegramMethod for SetStickerSetTitle {
type Method = Self;
type Return = bool;
fn build_request<Client>(self, _bot: &Bot<Client>) -> super::Request<Self::Method> {
super::Request::new("setStickerSetTitle", self, None)
}
}