pub struct StarterSeed {
pub name: String,
pub site: Map<String, Value>,
pub branding: Map<String, Value>,
pub theme: Option<ThemeSeed>,
pub page_types: Vec<PageTypeSeed>,
pub pages: Vec<PageSeed>,
pub menus: Vec<MenuSeed>,
pub error_pages: Vec<ErrorPageSeed>,
pub media: Vec<MediaSeed>,
}Expand description
A parsed theme.json.
Fields§
§name: String§site: Map<String, Value>§branding: Map<String, Value>The site’s name, logo and icon (site_name, logo, favicon),
written to Settings → Branding where it has none yet.
theme: Option<ThemeSeed>§page_types: Vec<PageTypeSeed>§pages: Vec<PageSeed>§error_pages: Vec<ErrorPageSeed>§media: Vec<MediaSeed>Trait Implementations§
Source§impl Debug for StarterSeed
impl Debug for StarterSeed
Source§impl<'de> Deserialize<'de> for StarterSeed
impl<'de> Deserialize<'de> for StarterSeed
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 Forget for StarterSeed
impl Freeze for StarterSeed
impl RefUnwindSafe for StarterSeed
impl Send for StarterSeed
impl Sync for StarterSeed
impl Unpin for StarterSeed
impl UnsafeUnpin for StarterSeed
impl UnwindSafe for StarterSeed
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreCreates a shared type from an unshared type.