pub struct Selection {
pub url: String,
pub branch: String,
pub head: String,
pub source_head: Option<String>,
pub disposition: Option<Disposition>,
pub instruction: String,
pub approved_at: Timestamp,
}Expand description
Durable operator selection. Only the recovery command creates this record.
Fields§
§url: StringExisting pull request in this repository.
branch: StringTask-scoped public branch.
head: StringInitial public publication lease, independent of the implementation source.
source_head: Option<String>Full immutable source commit; older selections used the public lease.
disposition: Option<Disposition>Missing on old records: requires an explicit new selection before work.
instruction: StringCriteria the operator approved, retained without rewriting them.
approved_at: TimestampApproval generation: a later selection does not resume an earlier run.
Implementations§
Source§impl Selection
impl Selection
Sourcepub fn source(&self) -> &str
pub fn source(&self) -> &str
Immutable implementation commit, distinct from the public update lease.
Sourcepub fn configure(&self, config: &mut Config) -> Result<()>
pub fn configure(&self, config: &mut Config) -> Result<()>
Reconcile only the delivery controls; preserve all other resolved settings.
Sourcepub async fn verify_source(&self, repo: &Path) -> Result<()>
pub async fn verify_source(&self, repo: &Path) -> Result<()>
Prove the adopted fix contains the selected public implementation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Selection
impl<'de> Deserialize<'de> for Selection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<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