pub struct EntryMetadata {Show 57 fields
pub page_title: String,
pub page_description: String,
pub page_icon: String,
pub share_title: String,
pub share_description: String,
pub share_image: String,
pub option_disable_views: bool,
pub option_disable_search_engine: bool,
pub option_view_password: String,
pub option_source_password: String,
pub access_recommended_theme: RecommendedTheme,
pub access_easy_read: String,
pub container_padding: String,
pub container_max_width: String,
pub container_inner_foreground_color: String,
pub container_inner_background: String,
pub container_inner_background_color: String,
pub container_inner_background_image: String,
pub container_inner_background_image_repeat: String,
pub container_inner_background_image_position: String,
pub container_inner_background_image_size: String,
pub container_outer_foreground_color: String,
pub container_outer_background: String,
pub container_outer_background_color: String,
pub container_outer_background_image: String,
pub container_outer_background_image_repeat: String,
pub container_outer_background_image_position: String,
pub container_outer_background_image_size: String,
pub container_border: String,
pub container_border_image: String,
pub container_border_image_slice: String,
pub container_border_image_width: String,
pub container_border_image_outset: String,
pub container_border_image_repeat: String,
pub container_border_color: String,
pub container_border_width: String,
pub container_border_style: String,
pub container_border_radius: String,
pub container_shadow: String,
pub container_flex: bool,
pub container_flex_direction: String,
pub container_flex_gap: String,
pub container_flex_wrap: bool,
pub container_flex_align_horizontal: String,
pub container_flex_align_vertical: String,
pub content_text_shadow: String,
pub content_text_shadow_color: String,
pub content_text_shadow_offset: String,
pub content_text_shadow_blur: String,
pub content_font: String,
pub content_font_weight: u32,
pub content_text_size: String,
pub content_text_size_array: Vec<(String, String)>,
pub content_text_align: TextAlignment,
pub content_text_color: String,
pub content_link_color: String,
pub content_disable_paragraph_margin: bool,
}
Fields§
§page_title: String
The title of the page.
page_description: String
The description of the page.
page_icon: String
The favicon of the page.
The title of the page shown in external embeds.
The description of the page shown in external embeds.
The image shown in external embeds.
option_disable_views: bool
If views are counted and shown for this entry.
option_disable_search_engine: bool
Hides this entry for search results.
option_view_password: String
The password that is required to view this entry.
option_source_password: String
The password that is required to view the source of the entry.
If no password is provided but a view password IS provided, the view password will be used.
access_recommended_theme: RecommendedTheme
The theme that is automatically used when this entry is viewed.
access_easy_read: String
The slug of the easy-to-read (no metadata) version of this entry.
Should not begin with “/”.
container_padding: String
The padding of the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/padding
container_max_width: String
The maximum width of the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/max-width
container_inner_foreground_color: String
The padding of the container. The color of the text in the inner container.
container_inner_background: String
The background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background
container_inner_background_color: String
The background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
container_inner_background_image: String
The background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-image
container_inner_background_image_repeat: String
The background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat
container_inner_background_image_position: String
The background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-position
container_inner_background_image_size: String
The background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
container_outer_foreground_color: String
The color of the text in the outer container.
container_outer_background: String
The background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background
container_outer_background_color: String
The background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
container_outer_background_image: String
The background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-image
container_outer_background_image_repeat: String
The background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat
container_outer_background_image_position: String
The background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-position
container_outer_background_image_size: String
The background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
container_border: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border
container_border_image: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
container_border_image_slice: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
container_border_image_width: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-width
container_border_image_outset: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-outset
container_border_image_repeat: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-repeat
container_border_color: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-color
container_border_width: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-width
container_border_style: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-style
container_border_radius: String
The border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
container_shadow: String
The shadow around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
container_flex: bool
If the container is a flexbox.
container_flex_direction: String
The direction of the container’s content (if container has flex enabled).
container_flex_gap: String
The gap of the container’s content (if container has flex enabled).
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
container_flex_wrap: bool
If the container’s content wraps (if container has flex enabled).
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
container_flex_align_horizontal: String
The alignment of the container’s content horizontally (if container has flex enabled).
Swapped to vertical when direction is column*
.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
container_flex_align_vertical: String
The alignment of the container’s content vertically (if container has flex enabled).
Swapped to horizontal when direction is column*
.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
content_text_shadow: String
The shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_text_shadow_color: String
The shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_text_shadow_offset: String
The shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_text_shadow_blur: String
The shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_font: String
The name of a font from Google Fonts to use.
content_font_weight: u32
The weight to use for the body text.
content_text_size: String
The text size of elements (separated by space).
content_text_size_array: Vec<(String, String)>
§content_text_align: TextAlignment
The default text alignment.
content_text_color: String
The base text color.
content_link_color: String
The color of links.
content_disable_paragraph_margin: bool
If paragraph elements have a margin below them.
Implementations§
Source§impl EntryMetadata
impl EntryMetadata
Trait Implementations§
Source§impl Default for EntryMetadata
impl Default for EntryMetadata
Source§fn default() -> EntryMetadata
fn default() -> EntryMetadata
Source§impl<'de> Deserialize<'de> for EntryMetadata
impl<'de> Deserialize<'de> for EntryMetadata
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>,
Source§impl Serialize for EntryMetadata
impl Serialize for EntryMetadata
Auto Trait Implementations§
impl Freeze for EntryMetadata
impl RefUnwindSafe for EntryMetadata
impl Send for EntryMetadata
impl Sync for EntryMetadata
impl Unpin for EntryMetadata
impl UnwindSafe for EntryMetadata
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
§impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
§impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
§impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
§impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
§fn from_json_value(value: Value) -> Result<T, Error<Error>>
fn from_json_value(value: Value) -> Result<T, Error<Error>>
serde_json::Value
. Read more§impl<T> FromTomlReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromTomlReader for Twhere
T: DeserializeOwned + Validate,
§fn from_toml_reader<R>(reader: R) -> Result<T, Error<Error>>where
R: Read,
fn from_toml_reader<R>(reader: R) -> Result<T, Error<Error>>where
R: Read,
§impl<'de, T> FromTomlSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromTomlSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
§fn from_toml_slice(slice: &'de [u8]) -> Result<T, Error<Error>>
fn from_toml_slice(slice: &'de [u8]) -> Result<T, Error<Error>>
§impl<'de, T> FromTomlStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromTomlStr<'de> for Twhere
T: Deserialize<'de> + Validate,
§fn from_toml_str(str: &'de str) -> Result<T, Error<Error>>
fn from_toml_str(str: &'de str) -> Result<T, Error<Error>>
§impl<T> FromTomlValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromTomlValue for Twhere
T: DeserializeOwned + Validate,
§fn from_toml_value(value: Value) -> Result<T, Error<Error>>
fn from_toml_value(value: Value) -> Result<T, Error<Error>>
serde_toml::Value
. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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 more