pub struct ActionAddOutcome {
pub pkg_id: String,
pub item: String,
pub tx_result: TxResult,
pub final_source: Option<String>,
pub provenance_id: Option<String>,
pub warnings: Vec<String>,
}Expand description
The outcome of a successful materialize_action call.
All ids are the FINAL ids written into the target document. When
tx_result.status == Rejected the function still returns Ok but
final_source and provenance_id are None and no document mutation was
recorded.
Fields§
§pkg_id: StringThe package id the item came from (e.g. @test/actions).
item: StringThe item name within the pack (e.g. apply-brand-kit).
tx_result: TxResultThe transaction result (status, diagnostics, source_before/after, affected_node_ids).
final_source: Option<String>The fully-formatted new document source: tx applied, action copied in,
library import added, and provenance recorded. None when the tx was
Rejected.
provenance_id: Option<String>The recorded provenance entry id. None when the tx was Rejected.
warnings: Vec<String>Non-fatal warnings (e.g. action id already present with different metadata).
Trait Implementations§
Source§impl Clone for ActionAddOutcome
impl Clone for ActionAddOutcome
Source§fn clone(&self) -> ActionAddOutcome
fn clone(&self) -> ActionAddOutcome
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 ActionAddOutcome
impl Debug for ActionAddOutcome
Source§impl PartialEq for ActionAddOutcome
impl PartialEq for ActionAddOutcome
Source§fn eq(&self, other: &ActionAddOutcome) -> bool
fn eq(&self, other: &ActionAddOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActionAddOutcome
Auto Trait Implementations§
impl Freeze for ActionAddOutcome
impl RefUnwindSafe for ActionAddOutcome
impl Send for ActionAddOutcome
impl Sync for ActionAddOutcome
impl Unpin for ActionAddOutcome
impl UnsafeUnpin for ActionAddOutcome
impl UnwindSafe for ActionAddOutcome
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<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.