pub struct ReviewGuidanceEntry { /* private fields */ }Expand description
One user-authored review note recorded during this session.
Implementations§
Source§impl ReviewGuidanceEntry
impl ReviewGuidanceEntry
Sourcepub fn new(
id: ReviewGuidanceId,
decision: ReviewGuidanceDecision,
user_note: impl Into<String>,
tool_name: impl Into<String>,
command: impl Into<String>,
requested_json: impl Into<String>,
) -> Self
pub fn new( id: ReviewGuidanceId, decision: ReviewGuidanceDecision, user_note: impl Into<String>, tool_name: impl Into<String>, command: impl Into<String>, requested_json: impl Into<String>, ) -> Self
Creates a review guidance entry from its validated fields.
Sourcepub const fn id(&self) -> ReviewGuidanceId
pub const fn id(&self) -> ReviewGuidanceId
Returns the stable session-local identifier for this guidance entry.
Sourcepub const fn decision(&self) -> ReviewGuidanceDecision
pub const fn decision(&self) -> ReviewGuidanceDecision
Returns whether the user allowed or denied the action when leaving this note.
Trait Implementations§
Source§impl Clone for ReviewGuidanceEntry
impl Clone for ReviewGuidanceEntry
Source§impl Debug for ReviewGuidanceEntry
impl Debug for ReviewGuidanceEntry
impl Eq for ReviewGuidanceEntry
Source§impl PartialEq for ReviewGuidanceEntry
impl PartialEq for ReviewGuidanceEntry
impl StructuralPartialEq for ReviewGuidanceEntry
Auto Trait Implementations§
impl Forget for ReviewGuidanceEntry
impl Freeze for ReviewGuidanceEntry
impl Move for ReviewGuidanceEntry
impl RefUnwindSafe for ReviewGuidanceEntry
impl Send for ReviewGuidanceEntrywhere
RawVecInner: Send,
impl Sync for ReviewGuidanceEntrywhere
RawVecInner: Sync,
impl Unpin for ReviewGuidanceEntry
impl UnsafeUnpin for ReviewGuidanceEntry
impl UnwindSafe for ReviewGuidanceEntrywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.