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.
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 · 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 TemplateRefField
impl Debug for TemplateRefField
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
Auto Trait Implementations§
impl Freeze for TemplateRefField
impl RefUnwindSafe for TemplateRefField
impl Send for TemplateRefField
impl Sync for TemplateRefField
impl Unpin 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