pub struct TopicAssociation {
pub topic: String,
pub subject: String,
pub relation: String,
pub confidence: f64,
}Expand description
A topic/concept in relation to a subject within an asset sub-graph.
This allows the sub-graph to express relationships like “this recording is about topic X” or “this venue is associated with subject Y” — where the topic and subject can be any IRI or string identifier.
Fields§
§topic: StringThe topic or concept (IRI or string)
subject: StringThe subject the topic relates to (IRI or string)
relation: StringThe relationship type (e.g., “q42:isAbout”, “q42:associatedWith”)
confidence: f64Optional confidence in this association
Implementations§
Trait Implementations§
Source§impl Clone for TopicAssociation
impl Clone for TopicAssociation
Source§impl Debug for TopicAssociation
impl Debug for TopicAssociation
Source§impl<'de> Deserialize<'de> for TopicAssociation
impl<'de> Deserialize<'de> for TopicAssociation
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 PartialEq for TopicAssociation
impl PartialEq for TopicAssociation
Source§impl Serialize for TopicAssociation
impl Serialize for TopicAssociation
impl StructuralPartialEq for TopicAssociation
Auto Trait Implementations§
impl Freeze for TopicAssociation
impl RefUnwindSafe for TopicAssociation
impl Send for TopicAssociation
impl Sync for TopicAssociation
impl Unpin for TopicAssociation
impl UnsafeUnpin for TopicAssociation
impl UnwindSafe for TopicAssociation
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