use std::borrow::Cow;
use serde::Serialize;
#[derive(Debug, Clone, Default, Serialize)]
pub struct StatusRequest<'a> {
#[serde(skip_serializing_if = "Option::is_none")]
state: Option<Cow<'a, str>>,
}
impl<'a> StatusRequest<'a> {
pub fn new() -> Self {
Self::default()
}
pub fn state(mut self, state: impl Into<Cow<'a, str>>) -> Self {
self.state = Some(state.into());
self
}
}