pub struct StyleChunk {
pub name: String,
pub css: String,
pub css_href: String,
pub component_tags: Vec<String>,
}Expand description
One bundled stylesheet carrying a contiguous run of component styles that share the same set of consuming CSS trees.
Fields§
§name: StringStable build-time chunk name. Surfaces as the data-webui-resource value so delivered stylesheets stay attributable without a source map.
css: StringConcatenated compiled CSS for the Style and Module strategies. Empty for Link.
css_href: StringExternal stylesheet href for the Link strategy. Empty for Style and Module.
Component tags whose CSS this chunk concatenates, in cascade order.
Trait Implementations§
Source§impl Clone for StyleChunk
impl Clone for StyleChunk
Source§impl Debug for StyleChunk
impl Debug for StyleChunk
Source§impl Default for StyleChunk
impl Default for StyleChunk
Source§impl<'de> Deserialize<'de> for StyleChunk
impl<'de> Deserialize<'de> for StyleChunk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StyleChunk
Source§impl Hash for StyleChunk
impl Hash for StyleChunk
Source§impl Message for StyleChunk
impl Message for StyleChunk
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for StyleChunk
impl PartialEq for StyleChunk
Source§impl Serialize for StyleChunk
impl Serialize for StyleChunk
impl StructuralPartialEq for StyleChunk
Auto Trait Implementations§
impl Freeze for StyleChunk
impl RefUnwindSafe for StyleChunk
impl Send for StyleChunk
impl Sync for StyleChunk
impl Unpin for StyleChunk
impl UnsafeUnpin for StyleChunk
impl UnwindSafe for StyleChunk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more