pub struct ExpandRelation {
pub field_types: Option<Vec<ExpandRelationFieldTypesItem>>,
pub relation: Value,
}
Expand description
ExpandRelation
JSON schema
{
"type": "object",
"required": [
"relation"
],
"properties": {
"field_types": {
"description": "The valid methods that control how an expand relation behaves.",
"type": "array",
"items": {
"enum": [
"SWITCHING_FIELD",
"CONSTANT_FIELD"
]
},
"uniqueItems": true
},
"relation": {
"const": "EXPAND"
}
},
"additionalProperties": false
}
Fields§
§field_types: Option<Vec<ExpandRelationFieldTypesItem>>
The valid methods that control how an expand relation behaves.
relation: Value
Implementations§
Source§impl ExpandRelation
impl ExpandRelation
pub fn builder() -> ExpandRelation
Trait Implementations§
Source§impl Clone for ExpandRelation
impl Clone for ExpandRelation
Source§fn clone(&self) -> ExpandRelation
fn clone(&self) -> ExpandRelation
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 ExpandRelation
impl Debug for ExpandRelation
Source§impl<'de> Deserialize<'de> for ExpandRelation
impl<'de> Deserialize<'de> for ExpandRelation
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 From<&ExpandRelation> for ExpandRelation
impl From<&ExpandRelation> for ExpandRelation
Source§fn from(value: &ExpandRelation) -> Self
fn from(value: &ExpandRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExpandRelation> for DialectSupportedRelationsItem
impl From<ExpandRelation> for DialectSupportedRelationsItem
Source§fn from(value: ExpandRelation) -> Self
fn from(value: ExpandRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExpandRelation> for ExpandRelation
impl From<ExpandRelation> for ExpandRelation
Source§fn from(value: ExpandRelation) -> Self
fn from(value: ExpandRelation) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExpandRelation
impl Serialize for ExpandRelation
Source§impl TryFrom<ExpandRelation> for ExpandRelation
impl TryFrom<ExpandRelation> for ExpandRelation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ExpandRelation) -> Result<Self, ConversionError>
fn try_from(value: ExpandRelation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ExpandRelation
impl RefUnwindSafe for ExpandRelation
impl Send for ExpandRelation
impl Sync for ExpandRelation
impl Unpin for ExpandRelation
impl UnwindSafe for ExpandRelation
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