#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct NodeTypeSpecificValue {
pub node_type: ::std::option::Option<::std::string::String>,
pub value: ::std::option::Option<::std::string::String>,
}
impl NodeTypeSpecificValue {
pub fn node_type(&self) -> ::std::option::Option<&str> {
self.node_type.as_deref()
}
pub fn value(&self) -> ::std::option::Option<&str> {
self.value.as_deref()
}
}
impl NodeTypeSpecificValue {
pub fn builder() -> crate::types::builders::NodeTypeSpecificValueBuilder {
crate::types::builders::NodeTypeSpecificValueBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct NodeTypeSpecificValueBuilder {
pub(crate) node_type: ::std::option::Option<::std::string::String>,
pub(crate) value: ::std::option::Option<::std::string::String>,
}
impl NodeTypeSpecificValueBuilder {
pub fn node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.node_type = ::std::option::Option::Some(input.into());
self
}
pub fn set_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.node_type = input;
self
}
pub fn get_node_type(&self) -> &::std::option::Option<::std::string::String> {
&self.node_type
}
pub fn value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.value = ::std::option::Option::Some(input.into());
self
}
pub fn set_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.value = input;
self
}
pub fn get_value(&self) -> &::std::option::Option<::std::string::String> {
&self.value
}
pub fn build(self) -> crate::types::NodeTypeSpecificValue {
crate::types::NodeTypeSpecificValue {
node_type: self.node_type,
value: self.value,
}
}
}