pub struct EntryMetadata {Show 64 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_mobile_padding: String,
pub container_max_width: String,
pub container_mobile_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_mobile_border_width: String,
pub container_border_style: String,
pub container_border_radius: String,
pub container_mobile_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,
pub safety_content_warning: String,
pub tetratto_owner_username: String,
pub tetratto_owner_id: usize,
}Fields§
§page_title: StringThe title of the page.
page_description: StringThe description of the page.
page_icon: StringThe 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: boolIf views are counted and shown for this entry.
option_disable_search_engine: boolHides this entry for search results.
option_view_password: StringThe password that is required to view this entry.
option_source_password: StringThe 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: RecommendedThemeThe theme that is automatically used when this entry is viewed.
access_easy_read: StringThe slug of the easy-to-read (no metadata) version of this entry.
Should not begin with “/”.
container_padding: StringThe padding of the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/padding
container_mobile_padding: StringThe padding of the container on mobile devices.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/padding
container_max_width: StringThe maximum width of the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/max-width
container_mobile_max_width: StringThe maximum width of the container on mobile devices.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/max-width
container_inner_foreground_color: StringThe padding of the container. The color of the text in the inner container.
container_inner_background: StringThe background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background
container_inner_background_color: StringThe background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
container_inner_background_image: StringThe background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-image
container_inner_background_image_repeat: StringThe background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat
container_inner_background_image_position: StringThe background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-position
container_inner_background_image_size: StringThe background of the inner container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
container_outer_foreground_color: StringThe color of the text in the outer container.
container_outer_background: StringThe background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background
container_outer_background_color: StringThe background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
container_outer_background_image: StringThe background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-image
container_outer_background_image_repeat: StringThe background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat
container_outer_background_image_position: StringThe background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-position
container_outer_background_image_size: StringThe background of the outer container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
container_border: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border
container_border_image: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
container_border_image_slice: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
container_border_image_width: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-width
container_border_image_outset: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-outset
container_border_image_repeat: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-repeat
container_border_color: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-color
container_border_width: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-width
container_mobile_border_width: StringThe border around the container on mobile devices.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-width
container_border_style: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-style
container_border_radius: StringThe border around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
container_mobile_border_radius: StringThe border around the container on mobile devices.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
container_shadow: StringThe shadow around the container.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
container_flex: boolIf the container is a flexbox.
container_flex_direction: StringThe direction of the container’s content (if container has flex enabled).
container_flex_gap: StringThe 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: boolIf 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: StringThe 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: StringThe 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: StringThe shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_text_shadow_color: StringThe shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_text_shadow_offset: StringThe shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_text_shadow_blur: StringThe shadow under text.
Syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
content_font: StringThe name of a font from Google Fonts to use.
content_font_weight: u32The weight to use for the body text.
content_text_size: StringThe text size of elements (separated by space).
content_text_size_array: Vec<(String, String)>§content_text_align: TextAlignmentThe default text alignment.
content_text_color: StringThe base text color.
content_link_color: StringThe color of links.
content_disable_paragraph_margin: boolIf paragraph elements have a margin below them.
safety_content_warning: StringThe content warning shown before viewing this entry.
tetratto_owner_username: StringThe username of the owner of this entry on the Tetratto instance.
For security reasons, this really does nothing but show the owner in the entry’s info section.
tetratto_owner_id: usizeThe ID of the owner of this entry on the Tetratto instance.
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
Source§impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
Source§impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
Source§fn from_json_value(value: Value) -> Result<T, Error<Error>>
fn from_json_value(value: Value) -> Result<T, Error<Error>>
serde_json::Value. Read moreSource§impl<T> FromTomlReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromTomlReader for Twhere
T: DeserializeOwned + Validate,
Source§impl<'de, T> FromTomlSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromTomlSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<'de, T> FromTomlStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromTomlStr<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<T> FromTomlValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromTomlValue for Twhere
T: DeserializeOwned + Validate,
Source§fn from_toml_value(value: Value) -> Result<T, Error<Error>>
fn from_toml_value(value: Value) -> Result<T, Error<Error>>
serde_toml::Value. Read moreSource§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>
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