pub struct ReplyRequest {
pub change: ChangeRef,
pub comment: CommentId,
pub body: String,
pub key: String,
pub label: Option<String>,
pub verified_absent: bool,
pub term_scope: TermScope,
}Expand description
One reply to post.
key is the caller’s idempotency key: calls on one host post at most one reply
carrying it. label is written into the marker (label=<label>);
verified_absent skips the read of the thread before posting, for a caller that
has just read it and found no reply with key.
Fields§
§change: ChangeRefThe change request the comment is on.
comment: CommentIdThe comment to answer.
body: StringWhat to say. The reply marker is added after it.
key: StringThe caller’s idempotency key.
label: Option<String>A single token of letters, digits and hyphens, written into the marker.
verified_absent: boolPost without reading the thread first: the caller has just read it and found
no reply carrying key.
term_scope: TermScopeWhich private repositories the public boundary check derives its terms from, should the change request’s repository be public. Unset is every registered private one.
Trait Implementations§
Source§impl Clone for ReplyRequest
impl Clone for ReplyRequest
Source§impl Debug for ReplyRequest
impl Debug for ReplyRequest
Source§impl<'de> Deserialize<'de> for ReplyRequest
impl<'de> Deserialize<'de> for ReplyRequest
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 ReplyRequest
Source§impl PartialEq for ReplyRequest
impl PartialEq for ReplyRequest
Source§impl Serialize for ReplyRequest
impl Serialize for ReplyRequest
impl StructuralPartialEq for ReplyRequest
Auto Trait Implementations§
impl Freeze for ReplyRequest
impl RefUnwindSafe for ReplyRequest
impl Send for ReplyRequest
impl Sync for ReplyRequest
impl Unpin for ReplyRequest
impl UnsafeUnpin for ReplyRequest
impl UnwindSafe for ReplyRequest
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.