pub struct WriteRelation {
pub relation: Value,
pub write_types: Option<Vec<WriteRelationWriteTypesItem>>,
}
Expand description
WriteRelation
JSON schema
{
"type": "object",
"required": [
"relation"
],
"properties": {
"relation": {
"const": "WRITE"
},
"write_types": {
"description": "The list of valid write types a write relation can perform.",
"type": "array",
"items": {
"enum": [
"NAMED_TABLE",
"EXTENSION_TABLE"
]
},
"uniqueItems": true
}
},
"additionalProperties": false
}
Fields§
§relation: Value
§write_types: Option<Vec<WriteRelationWriteTypesItem>>
The list of valid write types a write relation can perform.
Implementations§
Source§impl WriteRelation
impl WriteRelation
pub fn builder() -> WriteRelation
Trait Implementations§
Source§impl Clone for WriteRelation
impl Clone for WriteRelation
Source§fn clone(&self) -> WriteRelation
fn clone(&self) -> WriteRelation
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 WriteRelation
impl Debug for WriteRelation
Source§impl<'de> Deserialize<'de> for WriteRelation
impl<'de> Deserialize<'de> for WriteRelation
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<&WriteRelation> for WriteRelation
impl From<&WriteRelation> for WriteRelation
Source§fn from(value: &WriteRelation) -> Self
fn from(value: &WriteRelation) -> Self
Converts to this type from the input type.
Source§impl From<WriteRelation> for DialectSupportedRelationsItem
impl From<WriteRelation> for DialectSupportedRelationsItem
Source§fn from(value: WriteRelation) -> Self
fn from(value: WriteRelation) -> Self
Converts to this type from the input type.
Source§impl From<WriteRelation> for WriteRelation
impl From<WriteRelation> for WriteRelation
Source§fn from(value: WriteRelation) -> Self
fn from(value: WriteRelation) -> Self
Converts to this type from the input type.
Source§impl Serialize for WriteRelation
impl Serialize for WriteRelation
Source§impl TryFrom<WriteRelation> for WriteRelation
impl TryFrom<WriteRelation> for WriteRelation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WriteRelation) -> Result<Self, ConversionError>
fn try_from(value: WriteRelation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WriteRelation
impl RefUnwindSafe for WriteRelation
impl Send for WriteRelation
impl Sync for WriteRelation
impl Unpin for WriteRelation
impl UnwindSafe for WriteRelation
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