pub struct StreamedImport {
pub asset_id: Uuid,
pub blob_hashes: Vec<Hash32>,
pub local_original: PathBuf,
pub move_source: Option<PathBuf>,
}Expand description
A streamed import: everything the streaming window needs
about one just-imported asset to drive its upload → verify → release step, without exposing
workspace internals. Produced by Workspace::import_asset_streaming, which commits on the
signed path with source release deferred to the server-side verify-before-destroy gate,
since in streaming mode the local bytes are the only copy until the server durably
holds them.
Fields§
§asset_id: UuidThe imported asset’s id.
blob_hashes: Vec<Hash32>The declared blob content-addresses the release gate re-checks: the original ciphertext and the sealed metadata blob (the always-present required blobs).
local_original: PathBufThe local library original’s path — released (its file deleted and owned-original
representation row dropped) only on a durable verdict.
move_source: Option<PathBuf>The external Move-mode source path, if any — deleted only on a durable verdict.
Trait Implementations§
Source§impl Clone for StreamedImport
impl Clone for StreamedImport
Source§fn clone(&self) -> StreamedImport
fn clone(&self) -> StreamedImport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for StreamedImport
impl RefUnwindSafe for StreamedImport
impl Send for StreamedImport
impl Sync for StreamedImport
impl Unpin for StreamedImport
impl UnsafeUnpin for StreamedImport
impl UnwindSafe for StreamedImport
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