pub struct TokenAddOutcome {
pub pkg_id: String,
pub item: String,
pub token_id: String,
pub apply_property: &'static str,
pub dep_token_ids: Vec<String>,
pub provenance_id: String,
pub warnings: Vec<String>,
}Expand description
The outcome of a successful materialize_token call.
All ids are the FINAL ids written into the target document. The filter-token
id is kept VERBATIM (e.g. noir), so the user can apply it via
filter=(token)"noir".
Fields§
§pkg_id: StringThe package id the item came from (e.g. @zenith/filters).
item: StringThe item name within the pack (e.g. noir).
token_id: StringThe copied token id (kept as-is, e.g. noir or vignette).
apply_property: &'static strThe property the copied token is applied through: "filter" or "mask".
dep_token_ids: Vec<String>Dependency tokens copied alongside the item token (sorted, deduped).
provenance_id: StringThe unique id of the recorded provenance entry.
warnings: Vec<String>Non-fatal dependency-conflict warnings (see super::AddOutcome::warnings).
Trait Implementations§
Source§impl Clone for TokenAddOutcome
impl Clone for TokenAddOutcome
Source§fn clone(&self) -> TokenAddOutcome
fn clone(&self) -> TokenAddOutcome
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 TokenAddOutcome
impl Debug for TokenAddOutcome
impl Eq for TokenAddOutcome
Source§impl PartialEq for TokenAddOutcome
impl PartialEq for TokenAddOutcome
Source§fn eq(&self, other: &TokenAddOutcome) -> bool
fn eq(&self, other: &TokenAddOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TokenAddOutcome
Auto Trait Implementations§
impl Freeze for TokenAddOutcome
impl RefUnwindSafe for TokenAddOutcome
impl Send for TokenAddOutcome
impl Sync for TokenAddOutcome
impl Unpin for TokenAddOutcome
impl UnsafeUnpin for TokenAddOutcome
impl UnwindSafe for TokenAddOutcome
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,
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.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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.