pub struct TemplateRefField {
pub idx: u8,
pub name: String,
pub bind: Option<TemplateRefFieldBind>,
pub fields: Option<Vec<TemplateRefField>>,
}Expand description
Declaration for which fields from a content definition or data model to include.
Fields§
§idx: u8Specifies index for reference field. Index must be unique across fields for a given reference.
name: StringName of field to be included.
bind: Option<TemplateRefFieldBind>Option to bind this field’s value to a route segment, querystring parameter or token field.
IMPORTANT: this property is being deprecated.
Switch to using the TemplateRef::predicate config
field, instead.
fields: Option<Vec<TemplateRefField>>List of any nested subfields to include for this field.
Trait Implementations§
Source§impl Clone for TemplateRefField
impl Clone for TemplateRefField
Source§fn clone(&self) -> TemplateRefField
fn clone(&self) -> TemplateRefField
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 TemplateRefField
impl ComposeSchema for TemplateRefField
Source§impl Debug for TemplateRefField
impl Debug for TemplateRefField
Source§impl Default for TemplateRefField
impl Default for TemplateRefField
Source§fn default() -> TemplateRefField
fn default() -> TemplateRefField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemplateRefField
impl<'de> Deserialize<'de> for TemplateRefField
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 TemplateRefField
impl JsonSchema for TemplateRefField
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 TemplateRefField
impl Serialize for TemplateRefField
Auto Trait Implementations§
impl Freeze for TemplateRefField
impl RefUnwindSafe for TemplateRefField
impl Send for TemplateRefField
impl Sync for TemplateRefField
impl Unpin for TemplateRefField
impl UnsafeUnpin for TemplateRefField
impl UnwindSafe for TemplateRefField
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