pub struct ContentDefinition {
pub idx: u8,
pub name: String,
pub fields: Vec<Field>,
pub lifecycle: Option<ContentObjectLifecycle>,
}Fields§
§idx: u8Unique index for the content definition.
name: StringName of the content definition.
fields: Vec<Field>Fields for the content definition.
Note: only fields with the String and Uuid kinds can
be indexed (for now).
lifecycle: Option<ContentObjectLifecycle>configure scripts for responding to object lifecycle events.
Trait Implementations§
Source§impl Clone for ContentDefinition
impl Clone for ContentDefinition
Source§fn clone(&self) -> ContentDefinition
fn clone(&self) -> ContentDefinition
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 ComposeSchema for ContentDefinition
impl ComposeSchema for ContentDefinition
Source§impl Debug for ContentDefinition
impl Debug for ContentDefinition
Source§impl<'de> Deserialize<'de> for ContentDefinition
impl<'de> Deserialize<'de> for ContentDefinition
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 JsonSchema for ContentDefinition
impl JsonSchema for ContentDefinition
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ContentDefinition
impl Serialize for ContentDefinition
Auto Trait Implementations§
impl Freeze for ContentDefinition
impl RefUnwindSafe for ContentDefinition
impl Send for ContentDefinition
impl Sync for ContentDefinition
impl Unpin for ContentDefinition
impl UnsafeUnpin for ContentDefinition
impl UnwindSafe for ContentDefinition
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