pub struct Source {
pub id: String,
pub path: Utf8PathBuf,
pub sha256: String,
pub kind: Kind,
pub placement: Placement,
pub tags: Vec<String>,
pub group: Option<String>,
pub status: Status,
pub history: Vec<Event>,
}Expand description
One source document of the previous corpus.
Fields§
§id: StringA slug unique within the registry.
path: Utf8PathBufWhere it sat in the repository at the base commit.
sha256: StringThe SHA-256 of its bytes at the base commit.
kind: KindWhat kind of document it is.
placement: PlacementWhether it was archived or stays in place.
The topics the agent tagged it with.
group: Option<String>The group the agent filed it in.
status: StatusWhere it stands now.
history: Vec<Event>Every status it took, oldest first. Never rewritten.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Forget for Source
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.