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