pub struct MetaUpdate {
pub base_ref: Option<String>,
pub pr_number: Option<u64>,
pub pr_state: Option<String>,
pub pr_title: Option<String>,
pub pr_url: Option<String>,
pub issue_number: Option<u64>,
pub issue_title: Option<String>,
pub issue_url: Option<String>,
pub issue_brief: Option<String>,
pub created_by_wt: bool,
}Expand description
A wt.<branch>.* metadata update for Workspace::write_meta: every
Some field is written and every None field leaves the recorded value
untouched, so a caller refreshing one key cannot clobber the rest.
Fields§
§base_ref: Option<String>The base ref the branch was created from (spec §3).
pr_number: Option<u64>The associated PR number (spec §7).
pr_state: Option<String>The cached PR state, so wt list can show it offline.
pr_title: Option<String>The cached PR title.
pr_url: Option<String>The cached PR URL.
issue_number: Option<u64>The linked GitHub issue number (issue #100).
issue_title: Option<String>The cached issue title.
issue_url: Option<String>The cached issue URL.
issue_brief: Option<String>The generated implementation brief, persisted for embedders.
created_by_wt: boolMarks the branch as created by wt (spec §10), which is what allows a
later remove to delete it. There is no un-marking: false leaves the
recorded flag as it is.
Trait Implementations§
Source§impl Clone for MetaUpdate
impl Clone for MetaUpdate
Source§fn clone(&self) -> MetaUpdate
fn clone(&self) -> MetaUpdate
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 MetaUpdate
impl Debug for MetaUpdate
Source§impl Default for MetaUpdate
impl Default for MetaUpdate
Source§fn default() -> MetaUpdate
fn default() -> MetaUpdate
Returns the “default value” for a type. Read more
impl Eq for MetaUpdate
Source§impl PartialEq for MetaUpdate
impl PartialEq for MetaUpdate
impl StructuralPartialEq for MetaUpdate
Auto Trait Implementations§
impl Freeze for MetaUpdate
impl RefUnwindSafe for MetaUpdate
impl Send for MetaUpdate
impl Sync for MetaUpdate
impl Unpin for MetaUpdate
impl UnsafeUnpin for MetaUpdate
impl UnwindSafe for MetaUpdate
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