pub struct CardSchema {
pub name: String,
pub title: Option<String>,
pub description: Option<String>,
pub fields: HashMap<String, FieldSchema>,
pub ui: Option<UiContainerSchema>,
}Expand description
Schema definition for a card type (composable content blocks)
Fields§
§name: StringCard type name (e.g., “indorsements”)
title: Option<String>Short label for the card type
description: Option<String>Detailed description of this card type
fields: HashMap<String, FieldSchema>List of fields in the card
ui: Option<UiContainerSchema>UI layout hints
Trait Implementations§
Source§impl Clone for CardSchema
impl Clone for CardSchema
Source§fn clone(&self) -> CardSchema
fn clone(&self) -> CardSchema
Returns a duplicate 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 CardSchema
impl Debug for CardSchema
Source§impl<'de> Deserialize<'de> for CardSchema
impl<'de> Deserialize<'de> for CardSchema
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 CardSchema
impl PartialEq for CardSchema
Source§impl Serialize for CardSchema
impl Serialize for CardSchema
impl StructuralPartialEq for CardSchema
Auto Trait Implementations§
impl Freeze for CardSchema
impl RefUnwindSafe for CardSchema
impl Send for CardSchema
impl Sync for CardSchema
impl Unpin for CardSchema
impl UnwindSafe for CardSchema
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