pub struct OpenDiscussionRequest {
pub repo_path: Option<RepositoryRef>,
pub state_id: Option<StateId>,
pub anchor: Option<PathSymbolRef>,
pub body: String,
pub visibility: String,
pub thread_ref: String,
pub client_operation_id: String,
pub thread_id: String,
pub severity: i32,
pub kind: i32,
}Fields§
§repo_path: Option<RepositoryRef>§state_id: Option<StateId>§anchor: Option<PathSymbolRef>Optional only for a thread-only coordination discussion. CODE_ANCHORED (including an unset kind) requires this symbol anchor. COORDINATION requires a non-empty thread_ref and this anchor must be absent.
body: String§visibility: StringOptional override; empty uses the configured discussion visibility policy.
thread_ref: StringOptional attachment for a code discussion; the sole subject, and required, for a COORDINATION discussion.
client_operation_id: String§thread_id: StringStable identity paired with thread_ref; both are empty when the
discussion is not attached to a thread.
severity: i32§kind: i32UNSPECIFIED preserves the existing CODE_ANCHORED open behavior.
Implementations§
Source§impl OpenDiscussionRequest
impl OpenDiscussionRequest
Sourcepub fn severity(&self) -> DiscussionSeverity
pub fn severity(&self) -> DiscussionSeverity
Returns the enum value of severity, or the default if the field is set to an invalid enum value.
Sourcepub fn set_severity(&mut self, value: DiscussionSeverity)
pub fn set_severity(&mut self, value: DiscussionSeverity)
Sets severity to the provided enum value.
Sourcepub fn kind(&self) -> DiscussionKind
pub fn kind(&self) -> DiscussionKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: DiscussionKind)
pub fn set_kind(&mut self, value: DiscussionKind)
Sets kind to the provided enum value.
Trait Implementations§
Source§impl Clone for OpenDiscussionRequest
impl Clone for OpenDiscussionRequest
Source§fn clone(&self) -> OpenDiscussionRequest
fn clone(&self) -> OpenDiscussionRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpenDiscussionRequest
impl Debug for OpenDiscussionRequest
Source§impl Default for OpenDiscussionRequest
impl Default for OpenDiscussionRequest
impl Eq for OpenDiscussionRequest
Source§impl Hash for OpenDiscussionRequest
impl Hash for OpenDiscussionRequest
Source§impl Message for OpenDiscussionRequest
impl Message for OpenDiscussionRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.