#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ValidationErrorsEntry {
pub check_name: ::std::option::Option<::std::string::String>,
pub error_message: ::std::option::Option<::std::string::String>,
}
impl ValidationErrorsEntry {
pub fn check_name(&self) -> ::std::option::Option<&str> {
self.check_name.as_deref()
}
pub fn error_message(&self) -> ::std::option::Option<&str> {
self.error_message.as_deref()
}
}
impl ValidationErrorsEntry {
pub fn builder() -> crate::types::builders::ValidationErrorsEntryBuilder {
crate::types::builders::ValidationErrorsEntryBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ValidationErrorsEntryBuilder {
pub(crate) check_name: ::std::option::Option<::std::string::String>,
pub(crate) error_message: ::std::option::Option<::std::string::String>,
}
impl ValidationErrorsEntryBuilder {
pub fn check_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.check_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_check_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.check_name = input;
self
}
pub fn get_check_name(&self) -> &::std::option::Option<::std::string::String> {
&self.check_name
}
pub fn error_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.error_message = ::std::option::Option::Some(input.into());
self
}
pub fn set_error_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.error_message = input;
self
}
pub fn get_error_message(&self) -> &::std::option::Option<::std::string::String> {
&self.error_message
}
pub fn build(self) -> crate::types::ValidationErrorsEntry {
crate::types::ValidationErrorsEntry {
check_name: self.check_name,
error_message: self.error_message,
}
}
}