pub struct HomepageConfig {
pub hero_layout: String,
pub hero_image: Option<String>,
pub hero_height: String,
pub hero_text_align: String,
pub show_hero: bool,
pub show_pages: bool,
pub show_posts: bool,
pub posts_layout: String,
pub posts_columns: u8,
pub pages_layout: String,
pub sections_order: Vec<String>,
}Fields§
§hero_layout: String§hero_image: Option<String>§hero_height: String§hero_text_align: String§show_hero: bool§show_pages: bool§show_posts: bool§posts_layout: String§posts_columns: u8§pages_layout: String§sections_order: Vec<String>Implementations§
Source§impl HomepageConfig
impl HomepageConfig
pub fn get_sections_order(&self) -> Vec<&str>
Trait Implementations§
Source§impl Clone for HomepageConfig
impl Clone for HomepageConfig
Source§fn clone(&self) -> HomepageConfig
fn clone(&self) -> HomepageConfig
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 HomepageConfig
impl Debug for HomepageConfig
Source§impl Default for HomepageConfig
impl Default for HomepageConfig
Source§impl<'de> Deserialize<'de> for HomepageConfig
impl<'de> Deserialize<'de> for HomepageConfig
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
Auto Trait Implementations§
impl Freeze for HomepageConfig
impl RefUnwindSafe for HomepageConfig
impl Send for HomepageConfig
impl Sync for HomepageConfig
impl Unpin for HomepageConfig
impl UnsafeUnpin for HomepageConfig
impl UnwindSafe for HomepageConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().