pub struct ExchangeRelation {
pub kinds: Option<Vec<ExchangeRelationKindsItem>>,
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
},
"relation": {
"const": "EXCHANGE"
}
},
"additionalProperties": false
}
Fields§
§kinds: Option<Vec<ExchangeRelationKindsItem>>
The list of valid exchanges an exchange relation can perform.
relation: Value
Implementations§
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 · 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<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<&ExchangeRelation> for ExchangeRelation
impl From<&ExchangeRelation> for ExchangeRelation
Source§fn from(value: &ExchangeRelation) -> Self
fn from(value: &ExchangeRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExchangeRelation> for DialectSupportedRelationsItem
impl From<ExchangeRelation> for DialectSupportedRelationsItem
Source§fn from(value: ExchangeRelation) -> Self
fn from(value: ExchangeRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExchangeRelation> for ExchangeRelation
impl From<ExchangeRelation> for ExchangeRelation
Source§fn from(value: ExchangeRelation) -> Self
fn from(value: ExchangeRelation) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExchangeRelation
impl Serialize 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<Self, ConversionError>
fn try_from(value: ExchangeRelation) -> Result<Self, 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 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