pub struct SignedImportOptions {
pub move_source: bool,
pub defer_source_release: bool,
pub stack: Option<StackMembership>,
pub enrichment: Option<SidecarEnrichment>,
}Expand description
Options for a signed import driven by the import executor. Defaults (Copy mode, no stack,
no exporter metadata) reproduce the standalone Workspace::import_asset behaviour.
Fields§
§move_source: boolDelete the source file after a durable commit (Move mode).
defer_source_release: boolDefer Move-mode source deletion to the caller’s verify-before-destroy gate
(release_move_source) instead of
releasing on the local durable commit. Set by every import of a user’s file — the
executor and streaming import — because the source is the only other copy until
the server durably holds it (invariant 7); the caller releases it through
Workspace::release_move_source. Left false only where the source is scratch the
library made itself (Workspace::import_bytes).
stack: Option<StackMembership>Signed stack membership for a multi-file candidate member. Written into the
sidecar’s stack_membership LWW register — the same durable write
Workspace::set_stack_membership performs — and projected from there onto the index
row. None imports a standalone asset and leaves the register wire-absent.
enrichment: Option<SidecarEnrichment>Folded third-party exporter metadata for this file, attached by the
executor when the import came
from a source adapter. None — a plain filesystem
import — leaves every enriched field exactly as it was before this change.
Trait Implementations§
Source§impl Clone for SignedImportOptions
impl Clone for SignedImportOptions
Source§fn clone(&self) -> SignedImportOptions
fn clone(&self) -> SignedImportOptions
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 SignedImportOptions
impl Debug for SignedImportOptions
Source§impl Default for SignedImportOptions
impl Default for SignedImportOptions
Source§fn default() -> SignedImportOptions
fn default() -> SignedImportOptions
Auto Trait Implementations§
impl Freeze for SignedImportOptions
impl RefUnwindSafe for SignedImportOptions
impl Send for SignedImportOptions
impl Sync for SignedImportOptions
impl Unpin for SignedImportOptions
impl UnsafeUnpin for SignedImportOptions
impl UnwindSafe for SignedImportOptions
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> 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