Struct cdoc::document::DocumentMetadata
source · pub struct DocumentMetadata {
pub title: Option<String>,
pub draft: bool,
pub exercises: bool,
pub code_solutions: bool,
pub cell_outputs: bool,
pub interactive: bool,
pub editable: bool,
pub layout: LayoutSettings,
pub exclude_outputs: Option<Vec<String>>,
pub user_defined: HashMap<String, Value>,
}
Fields§
§title: Option<String>
§draft: bool
§exercises: bool
§code_solutions: bool
§cell_outputs: bool
§interactive: bool
§editable: bool
§layout: LayoutSettings
§exclude_outputs: Option<Vec<String>>
§user_defined: HashMap<String, Value>
Trait Implementations§
source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
Returns a copy 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 DocumentMetadata
impl Debug for DocumentMetadata
source§impl Default for DocumentMetadata
impl Default for DocumentMetadata
source§fn default() -> DocumentMetadata
fn default() -> DocumentMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DocumentMetadata
impl<'de> Deserialize<'de> for DocumentMetadata
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 RefUnwindSafe for DocumentMetadata
impl Send for DocumentMetadata
impl Sync for DocumentMetadata
impl Unpin for DocumentMetadata
impl UnwindSafe for DocumentMetadata
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, R> RenderElement<Vec<R, Global>> for Twhere
T: RenderElement<R>,
impl<T, R> RenderElement<Vec<R, Global>> for Twhere T: RenderElement<R>,
source§fn render(
&mut self,
elem: &Vec<R, Global>,
ctx: &RenderContext<'_>,
buf: impl Write
) -> Result<(), Error>
fn render( &mut self, elem: &Vec<R, Global>, ctx: &RenderContext<'_>, buf: impl Write ) -> Result<(), Error>
Render the element to a buffer
source§fn render_inner(&mut self, elem: &T, ctx: &RenderContext<'_>) -> Result<String>
fn render_inner(&mut self, elem: &T, ctx: &RenderContext<'_>) -> Result<String>
Convenience function for creating a buffer, rendering the element into the buffer, and
returning the result as a string. This is useful when an inner element needs to be rendered
first to be used in an outer element, hence the name.