pub struct SubjectRecord {
pub kind: SourceKind,
pub key: String,
pub title: Option<String>,
pub lang: Option<String>,
pub url: Option<String>,
pub topics: Vec<String>,
pub created_at: Option<String>,
}Expand description
A thing being tracked, stored once per (kind, key) and enriched on
later scans. title carries the human-readable line (repo
description, story title, crate description).
Fields§
§kind: SourceKindSubject type.
key: StringSource-stable identifier: owner/repo, HN object id, crate name.
title: Option<String>Human-readable line.
lang: Option<String>Primary language (GitHub only today).
url: Option<String>Canonical URL.
topics: Vec<String>Topics/keywords, lowercased by the source.
created_at: Option<String>Source creation timestamp (RFC 3339 or epoch), when available.
Trait Implementations§
Source§impl Clone for SubjectRecord
impl Clone for SubjectRecord
Source§fn clone(&self) -> SubjectRecord
fn clone(&self) -> SubjectRecord
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 SubjectRecord
impl Debug for SubjectRecord
impl Eq for SubjectRecord
Source§impl PartialEq for SubjectRecord
impl PartialEq for SubjectRecord
impl StructuralPartialEq for SubjectRecord
Auto Trait Implementations§
impl Freeze for SubjectRecord
impl RefUnwindSafe for SubjectRecord
impl Send for SubjectRecord
impl Sync for SubjectRecord
impl Unpin for SubjectRecord
impl UnsafeUnpin for SubjectRecord
impl UnwindSafe for SubjectRecord
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