pub struct PrComposeState {
pub field: ComposeField,
pub title: String,
pub body: String,
pub draft: bool,
pub branch: String,
pub trunk: String,
pub action_label: String,
pub model: AgentModel,
pub effort: Effort,
pub submitting: bool,
pub error: Option<String>,
}Expand description
The wt pr open compose-form state: a title and (multi-line) body the user
edits before submitting, plus the precomputed header context.
Fields§
§field: ComposeFieldWhich field is being edited.
title: StringThe PR title (single line).
body: StringThe PR body (may contain newlines).
draft: boolWhether to open the PR as a draft (create only).
branch: StringThe current branch (for the header).
trunk: StringThe base/trunk branch (for the header).
action_label: StringPrecomputed action label, e.g. create or update #12.
model: AgentModelThe model used for AI auto-fill (Ctrl-A), cycled with Ctrl-M.
effort: EffortThe effort used for AI auto-fill, cycled with Ctrl-E.
submitting: boolWhether a submit/draft operation is in flight (shown as a hint).
error: Option<String>An inline error from a failed draft or submission.
Trait Implementations§
Source§impl Clone for PrComposeState
impl Clone for PrComposeState
Source§fn clone(&self) -> PrComposeState
fn clone(&self) -> PrComposeState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrComposeState
impl Debug for PrComposeState
Source§impl Default for PrComposeState
impl Default for PrComposeState
Source§fn default() -> PrComposeState
fn default() -> PrComposeState
Returns the “default value” for a type. Read more
impl Eq for PrComposeState
Source§impl PartialEq for PrComposeState
impl PartialEq for PrComposeState
Source§fn eq(&self, other: &PrComposeState) -> bool
fn eq(&self, other: &PrComposeState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrComposeState
Auto Trait Implementations§
impl Freeze for PrComposeState
impl RefUnwindSafe for PrComposeState
impl Send for PrComposeState
impl Sync for PrComposeState
impl Unpin for PrComposeState
impl UnsafeUnpin for PrComposeState
impl UnwindSafe for PrComposeState
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
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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