pub struct Responsive {
pub version: String,
pub presentation_type: String,
pub defaults: ResponsiveDefaults,
pub styles: HashMap<String, ResponsiveStyle>,
}Expand description
Responsive presentation for adaptive screen layouts.
Fields§
§version: StringFormat version.
presentation_type: StringPresentation type (always “responsive”).
defaults: ResponsiveDefaultsDefault settings.
styles: HashMap<String, ResponsiveStyle>Style definitions with breakpoint overrides.
Implementations§
Source§impl Responsive
impl Responsive
Sourcepub fn with_breakpoints(breakpoints: Vec<Breakpoint>) -> Self
pub fn with_breakpoints(breakpoints: Vec<Breakpoint>) -> Self
Create a responsive presentation with custom breakpoints.
Sourcepub fn with_style(self, name: impl Into<String>, style: ResponsiveStyle) -> Self
pub fn with_style(self, name: impl Into<String>, style: ResponsiveStyle) -> Self
Add a responsive style definition.
Sourcepub fn with_standard_breakpoints() -> Self
pub fn with_standard_breakpoints() -> Self
Create a presentation with standard mobile/tablet/desktop breakpoints.
Trait Implementations§
Source§impl Clone for Responsive
impl Clone for Responsive
Source§fn clone(&self) -> Responsive
fn clone(&self) -> Responsive
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 Responsive
impl Debug for Responsive
Source§impl Default for Responsive
impl Default for Responsive
Source§impl<'de> Deserialize<'de> for Responsive
impl<'de> Deserialize<'de> for Responsive
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 Responsive
impl PartialEq for Responsive
Source§impl Serialize for Responsive
impl Serialize for Responsive
impl StructuralPartialEq for Responsive
Auto Trait Implementations§
impl Freeze for Responsive
impl RefUnwindSafe for Responsive
impl Send for Responsive
impl Sync for Responsive
impl Unpin for Responsive
impl UnsafeUnpin for Responsive
impl UnwindSafe for Responsive
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