pub struct ExchangeRelation {
pub kinds: Option<Vec<ExchangeRelationKindsItem>>,
pub metadata: Map<String, Value>,
pub relation: Value,
}Expand description
ExchangeRelation
JSON schema
{
"type": "object",
"required": [
"relation"
],
"properties": {
"kinds": {
"description": "The list of valid exchanges an exchange relation can perform.",
"type": "array",
"items": {
"enum": [
"SCATTER_BY_FIELDS",
"SINGLE_TARGET",
"MULTI_TARGET",
"ROUND_ROBIN",
"BROADCAST"
]
},
"uniqueItems": true
},
"metadata": {
"description": "Arbitrary data created by the dialect author.",
"type": "object"
},
"relation": {
"const": "EXCHANGE"
}
},
"additionalProperties": false
}Fields§
§kinds: Option<Vec<ExchangeRelationKindsItem>>The list of valid exchanges an exchange relation can perform.
metadata: Map<String, Value>Arbitrary data created by the dialect author.
relation: ValueImplementations§
Source§impl ExchangeRelation
impl ExchangeRelation
pub fn builder() -> ExchangeRelation
Trait Implementations§
Source§impl Clone for ExchangeRelation
impl Clone for ExchangeRelation
Source§fn clone(&self) -> ExchangeRelation
fn clone(&self) -> ExchangeRelation
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 Debug for ExchangeRelation
impl Debug for ExchangeRelation
Source§impl<'de> Deserialize<'de> for ExchangeRelation
impl<'de> Deserialize<'de> for ExchangeRelation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExchangeRelation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExchangeRelation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExchangeRelation> for DialectSupportedRelationsItem
impl From<ExchangeRelation> for DialectSupportedRelationsItem
Source§fn from(value: ExchangeRelation) -> DialectSupportedRelationsItem
fn from(value: ExchangeRelation) -> DialectSupportedRelationsItem
Converts to this type from the input type.
Source§impl From<ExchangeRelation> for ExchangeRelation
impl From<ExchangeRelation> for ExchangeRelation
Source§fn from(value: ExchangeRelation) -> ExchangeRelation
fn from(value: ExchangeRelation) -> ExchangeRelation
Converts to this type from the input type.
Source§impl PartialEq for ExchangeRelation
impl PartialEq for ExchangeRelation
Source§impl Serialize for ExchangeRelation
impl Serialize for ExchangeRelation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExchangeRelation
Source§impl TryFrom<ExchangeRelation> for ExchangeRelation
impl TryFrom<ExchangeRelation> for ExchangeRelation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExchangeRelation,
) -> Result<ExchangeRelation, ConversionError>
fn try_from( value: ExchangeRelation, ) -> Result<ExchangeRelation, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ExchangeRelation
impl RefUnwindSafe for ExchangeRelation
impl Send for ExchangeRelation
impl Sync for ExchangeRelation
impl Unpin for ExchangeRelation
impl UnsafeUnpin for ExchangeRelation
impl UnwindSafe for ExchangeRelation
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