pub struct ContentMetadata {
pub source: Option<String>,
pub path: Option<PathBuf>,
pub language: Option<String>,
}Expand description
Metadata about where content came from.
Fields§
§source: Option<String>Source identifier (e.g. “stdin”, “tool:read_file”).
path: Option<PathBuf>File path, if the content came from a file.
language: Option<String>Programming language, if detected.
Trait Implementations§
Source§impl Clone for ContentMetadata
impl Clone for ContentMetadata
Source§impl Debug for ContentMetadata
impl Debug for ContentMetadata
Source§impl<'de> Deserialize<'de> for ContentMetadata
impl<'de> Deserialize<'de> for ContentMetadata
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 ContentMetadata
impl RefUnwindSafe for ContentMetadata
impl Send for ContentMetadata
impl Sync for ContentMetadata
impl Unpin for ContentMetadata
impl UnsafeUnpin for ContentMetadata
impl UnwindSafe for ContentMetadata
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