pub struct ExtensionLeafRelation {
pub message_types: Option<Vec<String>>,
pub metadata: Map<String, Value>,
pub relation: Value,
}Expand description
ExtensionLeafRelation
JSON schema
{
"type": "object",
"required": [
"relation"
],
"properties": {
"message_types": {
"description": "The list of supported message types. Use the URI (e.g. type.googleapis.com/google.profile.Person) that is related to the detail field.\n",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"metadata": {
"description": "Arbitrary data created by the dialect author.",
"type": "object"
},
"relation": {
"const": "EXTENSION_LEAF"
}
},
"additionalProperties": false
}Fields§
§message_types: Option<Vec<String>>The list of supported message types. Use the URI (e.g. type.googleapis.com/google.profile.Person) that is related to the detail field.
metadata: Map<String, Value>Arbitrary data created by the dialect author.
relation: ValueImplementations§
Source§impl ExtensionLeafRelation
impl ExtensionLeafRelation
pub fn builder() -> ExtensionLeafRelation
Trait Implementations§
Source§impl Clone for ExtensionLeafRelation
impl Clone for ExtensionLeafRelation
Source§fn clone(&self) -> ExtensionLeafRelation
fn clone(&self) -> ExtensionLeafRelation
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 ExtensionLeafRelation
impl Debug for ExtensionLeafRelation
Source§impl<'de> Deserialize<'de> for ExtensionLeafRelation
impl<'de> Deserialize<'de> for ExtensionLeafRelation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExtensionLeafRelation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExtensionLeafRelation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExtensionLeafRelation> for DialectSupportedRelationsItem
impl From<ExtensionLeafRelation> for DialectSupportedRelationsItem
Source§fn from(value: ExtensionLeafRelation) -> DialectSupportedRelationsItem
fn from(value: ExtensionLeafRelation) -> DialectSupportedRelationsItem
Converts to this type from the input type.
Source§impl From<ExtensionLeafRelation> for ExtensionLeafRelation
impl From<ExtensionLeafRelation> for ExtensionLeafRelation
Source§fn from(value: ExtensionLeafRelation) -> ExtensionLeafRelation
fn from(value: ExtensionLeafRelation) -> ExtensionLeafRelation
Converts to this type from the input type.
Source§impl PartialEq for ExtensionLeafRelation
impl PartialEq for ExtensionLeafRelation
Source§impl Serialize for ExtensionLeafRelation
impl Serialize for ExtensionLeafRelation
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 ExtensionLeafRelation
Source§impl TryFrom<ExtensionLeafRelation> for ExtensionLeafRelation
impl TryFrom<ExtensionLeafRelation> for ExtensionLeafRelation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExtensionLeafRelation,
) -> Result<ExtensionLeafRelation, ConversionError>
fn try_from( value: ExtensionLeafRelation, ) -> Result<ExtensionLeafRelation, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ExtensionLeafRelation
impl RefUnwindSafe for ExtensionLeafRelation
impl Send for ExtensionLeafRelation
impl Sync for ExtensionLeafRelation
impl Unpin for ExtensionLeafRelation
impl UnsafeUnpin for ExtensionLeafRelation
impl UnwindSafe for ExtensionLeafRelation
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