pub enum TemplateRefFieldBind {
Token {
field: String,
expression: Option<QueryExpression>,
},
Segment {
name: String,
expression: Option<QueryExpression>,
},
}Expand description
Binding options for template field refs.
Variants§
Token
Bind this property to a token field.
Fields
§
field: StringName of the field that this property should bind to. (i.e “account” if you’d like to have an “/account” route that interprets the request based on the logged in user’s token claims/fields).
§
expression: Option<QueryExpression>Include if the parent field is queryable.
Segment
Bind this property to a route segment (i.e /{something})
Fields
§
expression: Option<QueryExpression>Include if the parent field is queryable.
Trait Implementations§
Source§impl Clone for TemplateRefFieldBind
impl Clone for TemplateRefFieldBind
Source§fn clone(&self) -> TemplateRefFieldBind
fn clone(&self) -> TemplateRefFieldBind
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 TemplateRefFieldBind
impl Debug for TemplateRefFieldBind
Source§impl<'de> Deserialize<'de> for TemplateRefFieldBind
impl<'de> Deserialize<'de> for TemplateRefFieldBind
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 TemplateRefFieldBind
impl RefUnwindSafe for TemplateRefFieldBind
impl Send for TemplateRefFieldBind
impl Sync for TemplateRefFieldBind
impl Unpin for TemplateRefFieldBind
impl UnwindSafe for TemplateRefFieldBind
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