pub struct ExtensionLeafRelation {
pub message_types: Option<Vec<String>>,
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
},
"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.
relation: Value
Implementations§
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 · 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<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<&ExtensionLeafRelation> for ExtensionLeafRelation
impl From<&ExtensionLeafRelation> for ExtensionLeafRelation
Source§fn from(value: &ExtensionLeafRelation) -> Self
fn from(value: &ExtensionLeafRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExtensionLeafRelation> for DialectSupportedRelationsItem
impl From<ExtensionLeafRelation> for DialectSupportedRelationsItem
Source§fn from(value: ExtensionLeafRelation) -> Self
fn from(value: ExtensionLeafRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExtensionLeafRelation> for ExtensionLeafRelation
impl From<ExtensionLeafRelation> for ExtensionLeafRelation
Source§fn from(value: ExtensionLeafRelation) -> Self
fn from(value: ExtensionLeafRelation) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExtensionLeafRelation
impl Serialize 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<Self, ConversionError>
fn try_from(value: ExtensionLeafRelation) -> Result<Self, 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 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