pub enum CreateResult {
WouldCreate {
chars: usize,
bytes: usize,
},
Blocked {
decided_by: Option<DecidingRule>,
},
Created {
file_id: String,
seeded_chars: Option<usize>,
},
CreatedTextFailed {
file_id: String,
detail: String,
},
Failed {
detail: String,
},
}Expand description
What happened (or, under --dry-run, would happen).
Variants§
WouldCreate
A dry run.
Fields
Blocked
The gate refused it.
Fields
§
decided_by: Option<DecidingRule>The rule that decided, when one did.
Created
Created, and seeded if --text was given.
Fields
CreatedTextFailed
Created, but the seeding write failed.
Carries the ID because automatic rollback is not authorised by a
create grant. The operator may explicitly trash the empty document
with a separate trash permission; plain failure would hide its ID.
Failed
Anything else.
Trait Implementations§
Source§impl Clone for CreateResult
impl Clone for CreateResult
Source§impl Debug for CreateResult
impl Debug for CreateResult
impl Eq for CreateResult
Source§impl PartialEq for CreateResult
impl PartialEq for CreateResult
Source§impl Serialize for CreateResult
impl Serialize for CreateResult
impl StructuralPartialEq for CreateResult
Auto Trait Implementations§
impl Freeze for CreateResult
impl RefUnwindSafe for CreateResult
impl Send for CreateResult
impl Sync for CreateResult
impl Unpin for CreateResult
impl UnsafeUnpin for CreateResult
impl UnwindSafe for CreateResult
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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 more