pub struct Upload {
pub blob: StoredBlob,
pub filename: String,
pub content_type: String,
pub content_text: String,
pub format: Option<&'static CadFormat>,
pub references: Vec<FileRef>,
pub export_name: Option<String>,
pub base: Option<BaseVersion>,
pub folder: Option<String>,
pub scan_head: Vec<u8>,
pub scan_tail: Vec<u8>,
pub solver_summary: Option<Value>,
}Expand description
A received upload that is already stored in the vault.
Fields§
§blob: StoredBlob§filename: String§content_type: String§content_text: StringText for the full-text search (see textindex).
format: Option<&'static CadFormat>Detected file format (see cadformat).
references: Vec<FileRef>CAD files this file references (see cadrefs).
export_name: Option<String>The name a STEP file was exported under, when it differs from
filename (see cadrefs::step_export_name).
base: Option<BaseVersion>The server version the client based this upload on; if the file moved on since, the upload is refused (409) instead of overwriting it.
folder: Option<String>Folder inside the project group (normalised, see
domain::normalize_folder); None keeps the folder of an existing
file ("" for a new one).
scan_head: Vec<u8>The beginning of a small text file (at most resultscan::SCAN_MAX_BYTES)
for result values from exchange files and templates; empty for other
files.
scan_tail: Vec<u8>The end of a text file larger than resultscan::SCAN_MAX_BYTES (at most
as many bytes, starting at a line) for templates with pick = last;
empty when scan_head holds the whole file.
solver_summary: Option<Value>Solver summary (solversummary) computed from the head and tail
read for the result scan; None for other files.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Upload
impl RefUnwindSafe for Upload
impl Send for Upload
impl Sync for Upload
impl Unpin for Upload
impl UnsafeUnpin for Upload
impl UnwindSafe for Upload
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.