pub struct SrcsetEntry {
pub url: String,
pub width: Option<u32>,
pub density: Option<f32>,
}Expand description
Srcset entry for responsive images
Fields§
§url: StringImage URL
width: Option<u32>Width descriptor (e.g., 800w)
density: Option<f32>Pixel density descriptor (e.g., 2x)
Trait Implementations§
Source§impl Clone for SrcsetEntry
impl Clone for SrcsetEntry
Source§fn clone(&self) -> SrcsetEntry
fn clone(&self) -> SrcsetEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SrcsetEntry
impl Debug for SrcsetEntry
Source§impl<'de> Deserialize<'de> for SrcsetEntry
impl<'de> Deserialize<'de> for SrcsetEntry
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
Source§impl PartialEq for SrcsetEntry
impl PartialEq for SrcsetEntry
Source§impl Serialize for SrcsetEntry
impl Serialize for SrcsetEntry
impl StructuralPartialEq for SrcsetEntry
Auto Trait Implementations§
impl Freeze for SrcsetEntry
impl RefUnwindSafe for SrcsetEntry
impl Send for SrcsetEntry
impl Sync for SrcsetEntry
impl Unpin for SrcsetEntry
impl UnwindSafe for SrcsetEntry
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