pub enum DocumentHandOffEnding {
Approve {
review_id: Option<String>,
note: Option<String>,
},
Feedback {
review_id: Option<String>,
note: Option<String>,
},
NotNow,
Abandoned,
}Expand description
How a document hand-off ended, as the reader’s answer and the parked call’s release.
The parked call answers on a decision, not on the open. The reader
accepts, reads and comments, and then chooses one of two outcomes:
Approve or Feedback. Both may carry a note and name the review the
finish filed. Approval is the one signal an agent may act on; feedback
means the document is revised and handed off again. A bare done is not
an outcome, so a reader who presses neither leaves the call parked; a
reader who never accepts releases it with NotNow instead.
Variants§
Approve
The reader approved the document and the agent may proceed.
review_id names the review the finish filed under the document’s
scope, null when nothing was commented; note is the reader’s
own words, carried verbatim.
Feedback
The reader sent feedback. The document is to be revised and handed
off again - this is never approval, whatever it carries. review_id
and note mean what Approve’s do.
NotNow
The reader chose not to open it.
Abandoned
The call’s waiter went away before any answer.
Trait Implementations§
Source§impl Clone for DocumentHandOffEnding
impl Clone for DocumentHandOffEnding
Source§impl Debug for DocumentHandOffEnding
impl Debug for DocumentHandOffEnding
Source§impl<'de> Deserialize<'de> for DocumentHandOffEnding
impl<'de> Deserialize<'de> for DocumentHandOffEnding
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>,
impl Eq for DocumentHandOffEnding
Source§impl PartialEq for DocumentHandOffEnding
impl PartialEq for DocumentHandOffEnding
Source§impl Serialize for DocumentHandOffEnding
impl Serialize for DocumentHandOffEnding
impl StructuralPartialEq for DocumentHandOffEnding
Auto Trait Implementations§
impl Freeze for DocumentHandOffEnding
impl RefUnwindSafe for DocumentHandOffEnding
impl Send for DocumentHandOffEnding
impl Sync for DocumentHandOffEnding
impl Unpin for DocumentHandOffEnding
impl UnsafeUnpin for DocumentHandOffEnding
impl UnwindSafe for DocumentHandOffEnding
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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.