pub struct ExtensionMultiRelation {
pub message_types: Option<Vec<String>>,
pub relation: Value,
}
Expand description
ExtensionMultiRelation
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_MULTI"
}
},
"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 ExtensionMultiRelation
impl ExtensionMultiRelation
pub fn builder() -> ExtensionMultiRelation
Trait Implementations§
Source§impl Clone for ExtensionMultiRelation
impl Clone for ExtensionMultiRelation
Source§fn clone(&self) -> ExtensionMultiRelation
fn clone(&self) -> ExtensionMultiRelation
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 ExtensionMultiRelation
impl Debug for ExtensionMultiRelation
Source§impl<'de> Deserialize<'de> for ExtensionMultiRelation
impl<'de> Deserialize<'de> for ExtensionMultiRelation
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<&ExtensionMultiRelation> for ExtensionMultiRelation
impl From<&ExtensionMultiRelation> for ExtensionMultiRelation
Source§fn from(value: &ExtensionMultiRelation) -> Self
fn from(value: &ExtensionMultiRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExtensionMultiRelation> for DialectSupportedRelationsItem
impl From<ExtensionMultiRelation> for DialectSupportedRelationsItem
Source§fn from(value: ExtensionMultiRelation) -> Self
fn from(value: ExtensionMultiRelation) -> Self
Converts to this type from the input type.
Source§impl From<ExtensionMultiRelation> for ExtensionMultiRelation
impl From<ExtensionMultiRelation> for ExtensionMultiRelation
Source§fn from(value: ExtensionMultiRelation) -> Self
fn from(value: ExtensionMultiRelation) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExtensionMultiRelation
impl Serialize for ExtensionMultiRelation
Source§impl TryFrom<ExtensionMultiRelation> for ExtensionMultiRelation
impl TryFrom<ExtensionMultiRelation> for ExtensionMultiRelation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ExtensionMultiRelation) -> Result<Self, ConversionError>
fn try_from(value: ExtensionMultiRelation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ExtensionMultiRelation
impl RefUnwindSafe for ExtensionMultiRelation
impl Send for ExtensionMultiRelation
impl Sync for ExtensionMultiRelation
impl Unpin for ExtensionMultiRelation
impl UnwindSafe for ExtensionMultiRelation
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