pub struct Source {
pub id: String,
pub path: String,
pub sha256: String,
pub tool: String,
pub kind: Kind,
pub placement: Placement,
pub tags: Vec<String>,
pub group: Option<String>,
pub status: Status,
pub history: Vec<HistoryEntry>,
}Expand description
One listed file.
Fields§
§id: StringA slug made from the path.
path: StringThe target-relative path it had.
sha256: StringThe sha256 of the bytes the archive took.
tool: StringThe tool that owns it.
kind: KindWhat it is to its tool.
placement: PlacementWhether the archive moved it or it stayed in place.
Free topic labels; sources that share one are candidates for one group.
group: Option<String>The group it belongs to, once mapped into one.
status: StatusWhere it stands now.
history: Vec<HistoryEntry>Every status it took, oldest first.
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 Move 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.