#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StatsEvent {
pub details: ::std::option::Option<crate::types::Stats>,
}
impl StatsEvent {
pub fn details(&self) -> ::std::option::Option<&crate::types::Stats> {
self.details.as_ref()
}
}
impl StatsEvent {
pub fn builder() -> crate::types::builders::StatsEventBuilder {
crate::types::builders::StatsEventBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StatsEventBuilder {
pub(crate) details: ::std::option::Option<crate::types::Stats>,
}
impl StatsEventBuilder {
pub fn details(mut self, input: crate::types::Stats) -> Self {
self.details = ::std::option::Option::Some(input);
self
}
pub fn set_details(mut self, input: ::std::option::Option<crate::types::Stats>) -> Self {
self.details = input;
self
}
pub fn get_details(&self) -> &::std::option::Option<crate::types::Stats> {
&self.details
}
pub fn build(self) -> crate::types::StatsEvent {
crate::types::StatsEvent { details: self.details }
}
}