pub struct CheckPlan {
pub entry_id: String,
pub created_at: i64,
pub label: String,
pub part: &'static str,
pub link: Link,
pub only: bool,
pub copies: Vec<Link>,
pub actor: String,
pub reason: String,
pub slot: Option<Arc<Slot>>,
pub no_github: Option<String>,
}Expand description
A check that has been allowed to run: which entry, which place, for whom.
Fields§
§entry_id: String§created_at: i64§label: String§part: &'static strThe entry’s main part, which the copy is compared with.
link: Link§only: boolThe entry is a link: it holds no value, so the check reads the place’s description and compares nothing.
copies: Vec<Link>The other places the key is kept, which a linked entry’s check describes too.
actor: StringThe agent’s id, or the person.
reason: String§slot: Option<Arc<Slot>>An agent’s check holds its place in the hour’s limit; the person’s has none.
no_github: Option<String>Why this asker’s check may not start a read of a CI secret, and what to do instead; None when it may. The
read uses the GitHub login of the person on this computer, so who may start one is decided by the caller.
Implementations§
Source§impl CheckPlan
impl CheckPlan
Sourcepub fn describes(&self) -> bool
pub fn describes(&self) -> bool
The check reads descriptions and compares no value: the entry is a link, or its place is a CI secret, whose value nothing can read back.
Sourcepub fn github_places(&self) -> Vec<&Link>
pub fn github_places(&self) -> Vec<&Link>
The CI secrets this check would read: the entry’s own place and its other places, when it describes them.
Trait Implementations§
impl StructuralPartialEq for CheckPlan
Auto Trait Implementations§
impl Freeze for CheckPlan
impl RefUnwindSafe for CheckPlan
impl Send for CheckPlan
impl Sync for CheckPlan
impl Unpin for CheckPlan
impl UnsafeUnpin for CheckPlan
impl UnwindSafe for CheckPlan
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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