pub struct ImportResult {
pub name: String,
pub collision_policy: String,
pub bytes: usize,
pub scope: ExportScope,
pub outcome: Value,
}Expand description
ign project import output model: {name, collision_policy, bytes, scope, outcome} — outcome is the opaque server answer
(an object when JSON, else the success fallback).
Fields§
§name: StringThe name imported under.
collision_policy: StringThe policy that ran (abort | overwrite).
bytes: usizeBytes uploaded.
scope: ExportScopeWhat the ZIP does and does not contain — the SAME consts as export’s, so the pair never drifts.
outcome: ValueThe server’s opaque answer.
Trait Implementations§
Source§impl Debug for ImportResult
impl Debug for ImportResult
Auto Trait Implementations§
impl Freeze for ImportResult
impl RefUnwindSafe for ImportResult
impl Send for ImportResult
impl Sync for ImportResult
impl Unpin for ImportResult
impl UnsafeUnpin for ImportResult
impl UnwindSafe for ImportResult
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