#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct Output {
pub key: ::std::option::Option<::std::string::String>,
pub value_string: ::std::option::Option<::std::string::String>,
}
impl Output {
pub fn key(&self) -> ::std::option::Option<&str> {
self.key.as_deref()
}
pub fn value_string(&self) -> ::std::option::Option<&str> {
self.value_string.as_deref()
}
}
impl ::std::fmt::Debug for Output {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("Output");
formatter.field("key", &"*** Sensitive Data Redacted ***");
formatter.field("value_string", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl Output {
pub fn builder() -> crate::types::builders::OutputBuilder {
crate::types::builders::OutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct OutputBuilder {
pub(crate) key: ::std::option::Option<::std::string::String>,
pub(crate) value_string: ::std::option::Option<::std::string::String>,
}
impl OutputBuilder {
pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.key = ::std::option::Option::Some(input.into());
self
}
pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.key = input;
self
}
pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
&self.key
}
pub fn value_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.value_string = ::std::option::Option::Some(input.into());
self
}
pub fn set_value_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.value_string = input;
self
}
pub fn get_value_string(&self) -> &::std::option::Option<::std::string::String> {
&self.value_string
}
pub fn build(self) -> crate::types::Output {
crate::types::Output {
key: self.key,
value_string: self.value_string,
}
}
}
impl ::std::fmt::Debug for OutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("OutputBuilder");
formatter.field("key", &"*** Sensitive Data Redacted ***");
formatter.field("value_string", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}