#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct InlineResponse2002 {
#[serde(rename = "authenticated")]
authenticated: Option<bool>,
#[serde(rename = "competing")]
competing: Option<bool>,
#[serde(rename = "connected")]
connected: Option<bool>,
#[serde(rename = "passed")]
passed: Option<bool>
}
impl InlineResponse2002 {
pub fn new() -> InlineResponse2002 {
InlineResponse2002 {
authenticated: None,
competing: None,
connected: None,
passed: None
}
}
pub fn set_authenticated(&mut self, authenticated: bool) {
self.authenticated = Some(authenticated);
}
pub fn with_authenticated(mut self, authenticated: bool) -> InlineResponse2002 {
self.authenticated = Some(authenticated);
self
}
pub fn authenticated(&self) -> Option<&bool> {
self.authenticated.as_ref()
}
pub fn reset_authenticated(&mut self) {
self.authenticated = None;
}
pub fn set_competing(&mut self, competing: bool) {
self.competing = Some(competing);
}
pub fn with_competing(mut self, competing: bool) -> InlineResponse2002 {
self.competing = Some(competing);
self
}
pub fn competing(&self) -> Option<&bool> {
self.competing.as_ref()
}
pub fn reset_competing(&mut self) {
self.competing = None;
}
pub fn set_connected(&mut self, connected: bool) {
self.connected = Some(connected);
}
pub fn with_connected(mut self, connected: bool) -> InlineResponse2002 {
self.connected = Some(connected);
self
}
pub fn connected(&self) -> Option<&bool> {
self.connected.as_ref()
}
pub fn reset_connected(&mut self) {
self.connected = None;
}
pub fn set_passed(&mut self, passed: bool) {
self.passed = Some(passed);
}
pub fn with_passed(mut self, passed: bool) -> InlineResponse2002 {
self.passed = Some(passed);
self
}
pub fn passed(&self) -> Option<&bool> {
self.passed.as_ref()
}
pub fn reset_passed(&mut self) {
self.passed = None;
}
}