pub struct ManifestBody {
pub reason: Option<String>,
pub manifest: JobManifest,
}Expand description
One request to replace a print’s manifest.
It carries a reason for the same reason every action does: a manifest narrows what any actor may ask for, so replacing one is a change to the bounds a print runs under rather than a note about it.
Fields§
§reason: Option<String>Why the manifest is being replaced.
manifest: JobManifestThe manifest to write.
Implementations§
Source§impl ManifestBody
impl ManifestBody
Sourcepub fn reason(&self) -> Result<String, BodyRefusal>
pub fn reason(&self) -> Result<String, BodyRefusal>
The reason this request carries, refused when it carries none.
§Errors
Returns BodyRefusal when the reason is absent or is nothing but
whitespace. It is checked before the manifest is written, so a
request without one leaves the stored manifest and the print’s
narrowings exactly as they were.
Trait Implementations§
Source§impl Clone for ManifestBody
impl Clone for ManifestBody
Source§impl Debug for ManifestBody
impl Debug for ManifestBody
Source§impl<'de> Deserialize<'de> for ManifestBody
impl<'de> Deserialize<'de> for ManifestBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ManifestBody
impl PartialEq for ManifestBody
impl StructuralPartialEq for ManifestBody
Auto Trait Implementations§
impl Forget for ManifestBody
impl Freeze for ManifestBody
impl RefUnwindSafe for ManifestBody
impl Send for ManifestBody
impl Sync for ManifestBody
impl Unpin for ManifestBody
impl UnsafeUnpin for ManifestBody
impl UnwindSafe for ManifestBody
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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