pub struct DiscussionEntry {
pub id: String,
pub repo: PathBuf,
pub repo_summary: String,
pub created_at: u64,
pub model: Option<String>,
pub events: Arc<Mutex<Vec<DiscussEvent>>>,
/* private fields */
}Expand description
One live discussion.
Fields§
§id: String§repo: PathBufThe git repo the conversation is grounded in.
repo_summary: StringCheap repo orientation, returned by coder.discuss.start so a caller
can show what the discussion can see.
created_at: u64§model: Option<String>§events: Arc<Mutex<Vec<DiscussEvent>>>Replay buffer. Written only by the drain task, so it is always in
seq order; readable elsewhere for inspection.
Implementations§
Source§impl DiscussionEntry
impl DiscussionEntry
Sourcepub fn constraints(&self) -> Vec<String>
pub fn constraints(&self) -> Vec<String>
Constraints agreed in this discussion, from the last promote.
Sourcepub fn is_answering(&self) -> bool
pub fn is_answering(&self) -> bool
Whether a reply turn is running right now.
Auto Trait Implementations§
impl !Freeze for DiscussionEntry
impl !RefUnwindSafe for DiscussionEntry
impl !UnwindSafe for DiscussionEntry
impl Send for DiscussionEntry
impl Sync for DiscussionEntry
impl Unpin for DiscussionEntry
impl UnsafeUnpin for DiscussionEntry
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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