pub struct TemplateRef {
pub idx: u8,
pub name: String,
pub fields: Vec<TemplateRefField>,
pub all: Option<String>,
}
Expand description
How templates reference Content Definitions and Data Models, and the specific fields it wants to include.
Fields§
§idx: u8
Specifies the index position for the referenced data. Index must be unique across flags, prams, data models and content definitions.
name: String
Name of the model or content definition.
fields: Vec<TemplateRefField>
Which fields to include.
all: Option<String>
for requesting multiple top-level items
note: only supported for content. models use relationships.
Trait Implementations§
Source§impl Clone for TemplateRef
impl Clone for TemplateRef
Source§fn clone(&self) -> TemplateRef
fn clone(&self) -> TemplateRef
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 TemplateRef
impl Debug for TemplateRef
Source§impl<'de> Deserialize<'de> for TemplateRef
impl<'de> Deserialize<'de> for TemplateRef
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 TemplateRef
impl RefUnwindSafe for TemplateRef
impl Send for TemplateRef
impl Sync for TemplateRef
impl Unpin for TemplateRef
impl UnwindSafe for TemplateRef
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