pub struct CssProperties {
pub font_family: Option<String>,
pub font_weight: Option<String>,
pub font_style: Option<String>,
pub font_display: Option<String>,
pub local_family: Vec<String>,
pub polyfill: Vec<PolyfillType>,
pub comment_base: Option<bool>,
pub comment_name_table: Option<bool>,
pub comment_unicodes: Option<bool>,
pub compress: Option<bool>,
pub file_name: Option<String>,
}Expand description
CSS 属性配置
Fields§
§font_family: Option<String>字体家族名称
font_weight: Option<String>字体粗细
font_style: Option<String>字体样式
font_display: Option<String>字体显示方式
local_family: Vec<String>本地字体家族名称
polyfill: Vec<PolyfillType>Polyfill 类型
comment_base: Option<bool>基础注释
comment_name_table: Option<bool>名称表注释
comment_unicodes: Option<bool>Unicode 注释
compress: Option<bool>是否压缩
file_name: Option<String>文件名
Implementations§
Source§impl CssProperties
impl CssProperties
Sourcepub fn font_family(&self) -> &str
pub fn font_family(&self) -> &str
Returns the value of font_family, or the default value if font_family is unset.
Sourcepub fn font_weight(&self) -> &str
pub fn font_weight(&self) -> &str
Returns the value of font_weight, or the default value if font_weight is unset.
Sourcepub fn font_style(&self) -> &str
pub fn font_style(&self) -> &str
Returns the value of font_style, or the default value if font_style is unset.
Sourcepub fn font_display(&self) -> &str
pub fn font_display(&self) -> &str
Returns the value of font_display, or the default value if font_display is unset.
Sourcepub fn compress(&self) -> bool
pub fn compress(&self) -> bool
Returns the value of compress, or the default value if compress is unset.
Sourcepub fn file_name(&self) -> &str
pub fn file_name(&self) -> &str
Returns the value of file_name, or the default value if file_name is unset.
Sourcepub fn comment_base(&self) -> bool
pub fn comment_base(&self) -> bool
Returns the value of comment_base, or the default value if comment_base is unset.
Sourcepub fn comment_name_table(&self) -> bool
pub fn comment_name_table(&self) -> bool
Returns the value of comment_name_table, or the default value if comment_name_table is unset.
Sourcepub fn comment_unicodes(&self) -> bool
pub fn comment_unicodes(&self) -> bool
Returns the value of comment_unicodes, or the default value if comment_unicodes is unset.
Trait Implementations§
Source§impl Clone for CssProperties
impl Clone for CssProperties
Source§fn clone(&self) -> CssProperties
fn clone(&self) -> CssProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CssProperties
impl Debug for CssProperties
Source§impl Default for CssProperties
impl Default for CssProperties
Source§impl Message for CssProperties
impl Message for CssProperties
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.