#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Interface {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
}
impl Interface {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
}
impl Interface {
pub fn builder() -> crate::types::builders::InterfaceBuilder {
crate::types::builders::InterfaceBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct InterfaceBuilder {
pub(crate) name: std::option::Option<std::string::String>,
}
impl InterfaceBuilder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn build(self) -> crate::types::Interface {
crate::types::Interface { name: self.name }
}
}