pub struct LinkDef {
pub left_field: String,
pub name: String,
pub right_field: String,
pub strategy: Option<LinkStrategy>,
pub target_origin: String,
pub target_query: String,
}Expand description
Cross-source entity linking rule in TOML config.
JSON schema
{
"description": "Cross-source entity linking rule in TOML config.",
"type": "object",
"required": [
"left_field",
"name",
"right_field",
"target_origin",
"target_query"
],
"properties": {
"left_field": {
"type": "string"
},
"name": {
"type": "string"
},
"right_field": {
"type": "string"
},
"strategy": {
"$ref": "#/components/schemas/LinkStrategy"
},
"target_origin": {
"type": "string"
},
"target_query": {
"type": "string"
}
}
}Fields§
§left_field: String§name: String§right_field: String§strategy: Option<LinkStrategy>§target_origin: String§target_query: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for LinkDef
impl<'de> Deserialize<'de> for LinkDef
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
Auto Trait Implementations§
impl Freeze for LinkDef
impl RefUnwindSafe for LinkDef
impl Send for LinkDef
impl Sync for LinkDef
impl Unpin for LinkDef
impl UnsafeUnpin for LinkDef
impl UnwindSafe for LinkDef
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