pub struct CitedWork {
pub number: usize,
pub identifier: String,
pub identity: String,
}Expand description
A CitedWork contains the number, the identifier and the identity of a
cited work. The table of cited works (CitedWorks) stores a CitedWork
for each citation key, and the citation keys that refer to the same work
have equal CitedWork values.
Fields§
§number: usizeThe number of the work. The cited works are numbered from 1, in the order of the first citation of any of their citation keys.
identifier: StringThe identifier of the work, as in citation-1: the prefix
IDENTIFIER_PREFIX followed by the number. In the output, it is the
anchor of the entry of the work in the list of cited works.
identity: StringThe identity of the work. Citation keys with the same identity refer to
the same work. The identity is the one that the citation provider gives
in its answer for the citation key
(CitationAnswer::identity). If the
citation key has no answer, or its answer gives no identity, the
identity is the citation key itself.
Trait Implementations§
impl Eq for CitedWork
impl StructuralPartialEq for CitedWork
Auto Trait Implementations§
impl Forget for CitedWork
impl Freeze for CitedWork
impl Move for CitedWork
impl RefUnwindSafe for CitedWork
impl Send for CitedWorkwhere
RawVecInner: Send,
impl Sync for CitedWorkwhere
RawVecInner: Sync,
impl Unpin for CitedWork
impl UnsafeUnpin for CitedWork
impl UnwindSafe for CitedWorkwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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