#[repr(i32)]pub enum RepoEventKind {
Unspecified = 0,
DiscussionTurn = 1,
}Expand description
Typed projection of RepoEvent.event_type. event_type (a free-form string)
stays authoritative on the wire; kind is the enum any consumer can switch
on. UNSPECIFIED means the producer emitted an event_type this enum does not
yet name — read event_type in that case. Additive: new kinds append at the
next free number.
Variants§
Unspecified = 0
DiscussionTurn = 1
A discussion turn appended on a thread, carried on the live plane so clients render new turns without polling. Pairs with state_review.proto DiscussionTurn.turn_seq / turn_id.
Implementations§
Source§impl RepoEventKind
impl RepoEventKind
Source§impl RepoEventKind
impl RepoEventKind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for RepoEventKind
impl Clone for RepoEventKind
Source§fn clone(&self) -> RepoEventKind
fn clone(&self) -> RepoEventKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more