pub struct BodyCardSchema {
pub enabled: Option<bool>,
pub example: Option<String>,
pub example_content: Option<QuillValue>,
}Expand description
Body namespace configuration for a card kind
Fields§
§enabled: Option<bool>When false, consumers must not accept or store body content for instances of this card kind.
example: Option<String>Embedded verbatim in the blueprint body region; falls back to Write <card> body here. when absent.
Has no effect when enabled is false.
example_content: Option<QuillValue>Canonical-content form of example, imported once at
quill load (QuillConfig::from_yaml) and cached here — a pure function of
the Quill.yaml bytes, never serialized. Seeding commits this instead of
re-importing the markdown per document, so a seeded body is content from
birth. None when there is no example or the schema was built outside the
loader (e.g. a hand-built test schema), in which case consumers fall back
to importing example.
Trait Implementations§
Source§impl Clone for BodyCardSchema
impl Clone for BodyCardSchema
Source§fn clone(&self) -> BodyCardSchema
fn clone(&self) -> BodyCardSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BodyCardSchema
impl Debug for BodyCardSchema
Source§impl<'de> Deserialize<'de> for BodyCardSchema
impl<'de> Deserialize<'de> for BodyCardSchema
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
Source§impl PartialEq for BodyCardSchema
impl PartialEq for BodyCardSchema
Source§impl Serialize for BodyCardSchema
impl Serialize for BodyCardSchema
impl StructuralPartialEq for BodyCardSchema
Auto Trait Implementations§
impl !Freeze for BodyCardSchema
impl RefUnwindSafe for BodyCardSchema
impl Send for BodyCardSchema
impl Sync for BodyCardSchema
impl Unpin for BodyCardSchema
impl UnsafeUnpin for BodyCardSchema
impl UnwindSafe for BodyCardSchema
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