pub struct SemanticContent {
pub text: String,
pub fragments: Vec<String>,
pub context: Option<String>,
pub perspective: Option<String>,
}Expand description
Semantically structured content with fragments and optional context.
Fields§
§text: StringThe primary text representation.
fragments: Vec<String>Semantic fragments extracted from the text.
context: Option<String>Optional surrounding context.
perspective: Option<String>Optional perspective or viewpoint.
Trait Implementations§
Source§impl Clone for SemanticContent
impl Clone for SemanticContent
Source§fn clone(&self) -> SemanticContent
fn clone(&self) -> SemanticContent
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 SemanticContent
impl Debug for SemanticContent
Source§impl<'de> Deserialize<'de> for SemanticContent
impl<'de> Deserialize<'de> for SemanticContent
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 SemanticContent
impl PartialEq for SemanticContent
Source§impl Serialize for SemanticContent
impl Serialize for SemanticContent
impl StructuralPartialEq for SemanticContent
Auto Trait Implementations§
impl Freeze for SemanticContent
impl RefUnwindSafe for SemanticContent
impl Send for SemanticContent
impl Sync for SemanticContent
impl Unpin for SemanticContent
impl UnsafeUnpin for SemanticContent
impl UnwindSafe for SemanticContent
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