pub struct TopNRelation {
pub metadata: Map<String, Value>,
pub relation: Value,
}Expand description
TopNRelation
JSON schema
{
"type": "object",
"required": [
"relation"
],
"properties": {
"metadata": {
"description": "Arbitrary data created by the dialect author.",
"type": "object"
},
"relation": {
"const": "TOP_N"
}
},
"additionalProperties": false
}Fields§
§metadata: Map<String, Value>Arbitrary data created by the dialect author.
relation: ValueImplementations§
Source§impl TopNRelation
impl TopNRelation
pub fn builder() -> TopNRelation
Trait Implementations§
Source§impl Clone for TopNRelation
impl Clone for TopNRelation
Source§fn clone(&self) -> TopNRelation
fn clone(&self) -> TopNRelation
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 TopNRelation
impl Debug for TopNRelation
Source§impl<'de> Deserialize<'de> for TopNRelation
impl<'de> Deserialize<'de> for TopNRelation
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<TopNRelation> for DialectSupportedRelationsItem
impl From<TopNRelation> for DialectSupportedRelationsItem
Source§fn from(value: TopNRelation) -> Self
fn from(value: TopNRelation) -> Self
Converts to this type from the input type.
Source§impl From<TopNRelation> for TopNRelation
impl From<TopNRelation> for TopNRelation
Source§fn from(value: TopNRelation) -> Self
fn from(value: TopNRelation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TopNRelation
impl PartialEq for TopNRelation
Source§impl Serialize for TopNRelation
impl Serialize for TopNRelation
impl StructuralPartialEq for TopNRelation
Source§impl TryFrom<TopNRelation> for TopNRelation
impl TryFrom<TopNRelation> for TopNRelation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TopNRelation) -> Result<Self, ConversionError>
fn try_from(value: TopNRelation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TopNRelation
impl RefUnwindSafe for TopNRelation
impl Send for TopNRelation
impl Sync for TopNRelation
impl Unpin for TopNRelation
impl UnsafeUnpin for TopNRelation
impl UnwindSafe for TopNRelation
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