pub struct SourceItem {
pub uri: String,
pub title: String,
pub content: String,
pub hash: String,
pub source_type: String,
pub metadata: HashMap<String, String>,
}Expand description
Item from a source provider
Fields§
§uri: StringUnique identifier within collection (path for files, URL for GitHub)
title: StringDisplay title for the item
content: StringFull content of the item
hash: StringContent hash (SHA-256)
source_type: StringProvider type that created this item
metadata: HashMap<String, String>Provider-specific metadata (commit SHA, author, URL, etc.)
Implementations§
Trait Implementations§
Source§impl Clone for SourceItem
impl Clone for SourceItem
Source§fn clone(&self) -> SourceItem
fn clone(&self) -> SourceItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SourceItem
impl RefUnwindSafe for SourceItem
impl Send for SourceItem
impl Sync for SourceItem
impl Unpin for SourceItem
impl UnwindSafe for SourceItem
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