pub struct LibraryEntry {Show 24 fields
pub asset_uri: String,
pub primary_subject: u64,
pub media_type: String,
pub quins: Vec<NQuin>,
pub topics: Vec<String>,
pub projects: Vec<String>,
pub purposes: Vec<String>,
pub place: Option<String>,
pub occurred_at: Option<i64>,
pub lat: Option<f32>,
pub lon: Option<f32>,
pub flags: Vec<LibraryFlag>,
pub ingested_unix: u64,
pub excerpt: String,
pub sensitivity: String,
pub section: String,
pub commons_visibility: CommonsVisibility,
pub cml_signals: Vec<String>,
pub cml_concept_count: u32,
pub cml_n3: String,
pub cof_html: String,
pub cof_segment_count: u32,
pub cof_segment_index: u32,
pub cof_profile: String,
}Expand description
One ingested asset in the person’s library — its identity + the container’s semantic edge-graph.
Fields§
§asset_uri: String§primary_subject: u64The container primary’s subject (= fnv60(asset_uri)) — the join key for search results.
media_type: String§quins: Vec<NQuin>The container’s edge-graph (container + descriptor + flag quins) — the searchable semantic form.
topics: Vec<String>Display facets (the string forms of the descriptors; search itself runs over the quins above).
projects: Vec<String>§purposes: Vec<String>Purpose tags (tax, health, research, …) — power purpose-shaped sections.
place: Option<String>§occurred_at: Option<i64>Event instant (unix seconds) if the asset carries one — the timeline anchor
(e.g. a photo’s EXIF capture time). None = no dated event.
lat: Option<f32>Geographic coordinates if the asset carries them (e.g. a photo’s GPS) — the
map pin. Both present together or both None.
lon: Option<f32>§flags: Vec<LibraryFlag>§ingested_unix: u64§excerpt: StringA short excerpt for display in results (never the whole asset).
sensitivity: Stringpublic | restricted | classified — high sensitivity forces Secret section.
section: StringProduct section lane (secret / wellfair / personal / work / commons).
commons_visibility: CommonsVisibilityHow far this may travel on social / commons layers.
cml_signals: Vec<String>CML context-graph signal tags (privacy:consent, deontic:obligation, …).
cml_concept_count: u32Number of proposed CML concepts on this entry.
cml_n3: StringCompact proposed CML N3 for this unit (TEXT→CONCEPT→LOGIC; cml:Proposed only).
Truncated for large instruments; full graph also lives in quins.
cof_html: StringCOF HTML+RDFa segment (profile html-rdfa-1). Empty if not emitted. Large instruments store the index on the root and body segments as child entries.
cof_segment_count: u32Number of COF segments in the package this entry belongs to (0 = none).
cof_segment_index: u32This entry’s segment index (0 = index/TOC).
cof_profile: StringCOF profile IRI when cof_html is set.
Implementations§
Source§impl LibraryEntry
impl LibraryEntry
Sourcepub fn recompute_section(&mut self)
pub fn recompute_section(&mut self)
Recompute section from sensitivity / purposes / commons (call after mutate).
pub fn is_secret(&self) -> bool
Trait Implementations§
Source§impl Clone for LibraryEntry
impl Clone for LibraryEntry
Source§fn clone(&self) -> LibraryEntry
fn clone(&self) -> LibraryEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LibraryEntry
impl Debug for LibraryEntry
Source§impl<'de> Deserialize<'de> for LibraryEntry
impl<'de> Deserialize<'de> for LibraryEntry
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>,
Source§impl PartialEq for LibraryEntry
impl PartialEq for LibraryEntry
Source§fn eq(&self, other: &LibraryEntry) -> bool
fn eq(&self, other: &LibraryEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for LibraryEntry
impl Serialize for LibraryEntry
impl StructuralPartialEq for LibraryEntry
Auto Trait Implementations§
impl Freeze for LibraryEntry
impl RefUnwindSafe for LibraryEntry
impl Send for LibraryEntry
impl Sync for LibraryEntry
impl Unpin for LibraryEntry
impl UnsafeUnpin for LibraryEntry
impl UnwindSafe for LibraryEntry
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more