pub struct ShownValue {
pub statement: StatementId,
pub value: Value,
pub valid_time: Option<Edtf>,
pub presence: Presence,
pub unreadable_date: bool,
pub language: Option<String>,
pub other_forms: usize,
pub forms: Vec<OtherForm>,
}Expand description
A value as it is shown.
Fields§
§statement: StatementIdThe statement that holds it.
value: ValueThe value.
valid_time: Option<Edtf>When it was true, if its valid time can be read: a date for something that happened, an interval for a state.
presence: PresenceWhether it certainly holds on the day shown, only possibly holds there, or has no date that can be read, and so shows on every day.
unreadable_date: boolWhether it has a valid time that this version cannot read.
language: Option<String>Its language tag, as written, if it has one.
other_forms: usizeHow many other forms the value has, in other languages or scripts.
forms: Vec<OtherForm>The other forms, ordered by the IDs of their statements.
Trait Implementations§
Source§impl Clone for ShownValue
impl Clone for ShownValue
Source§impl Debug for ShownValue
impl Debug for ShownValue
impl Eq for ShownValue
Source§impl PartialEq for ShownValue
impl PartialEq for ShownValue
impl StructuralPartialEq for ShownValue
Auto Trait Implementations§
impl Forget for ShownValue
impl Freeze for ShownValue
impl Move for ShownValue
impl RefUnwindSafe for ShownValue
impl Send for ShownValue
impl Sync for ShownValue
impl Unpin for ShownValue
impl UnsafeUnpin for ShownValue
impl UnwindSafe for ShownValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.