pub enum GatePlanMode {
Affected,
Full,
}Expand description
use majordomus_cli::gates::GatePlanMode;
// a plan is either the gates the change selects, or everything the runners allow
assert_eq!(GatePlanMode::Affected.as_str(), "affected");
assert_eq!(GatePlanMode::Full.as_str(), "full");
assert_ne!(GatePlanMode::Affected, GatePlanMode::Full);Why the plan selects what it selects.
Variants§
Affected
The gates of the classes the changed paths fall in.
Full
Every gate but the on-demand ones: asked for, or escalated to.
Implementations§
Source§impl GatePlanMode
impl GatePlanMode
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The word this mode is reported under; scripts/ci-plan’s own.
use majordomus_cli::gates::GatePlanMode;
// the same words the shell planner prints, because there is one model and two readers
assert_eq!(GatePlanMode::Full.as_str(), "full");
assert_eq!(GatePlanMode::Affected.as_str(), "affected");Trait Implementations§
Source§impl Clone for GatePlanMode
impl Clone for GatePlanMode
Source§fn clone(&self) -> GatePlanMode
fn clone(&self) -> GatePlanMode
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 moreimpl Copy for GatePlanMode
Source§impl Debug for GatePlanMode
impl Debug for GatePlanMode
Source§impl<'de> Deserialize<'de> for GatePlanMode
impl<'de> Deserialize<'de> for GatePlanMode
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 GatePlanMode
Source§impl JsonSchema for GatePlanMode
impl JsonSchema for GatePlanMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for GatePlanMode
impl PartialEq for GatePlanMode
Source§fn eq(&self, other: &GatePlanMode) -> bool
fn eq(&self, other: &GatePlanMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GatePlanMode
impl Serialize for GatePlanMode
impl StructuralPartialEq for GatePlanMode
Auto Trait Implementations§
impl Freeze for GatePlanMode
impl RefUnwindSafe for GatePlanMode
impl Send for GatePlanMode
impl Sync for GatePlanMode
impl Unpin for GatePlanMode
impl UnsafeUnpin for GatePlanMode
impl UnwindSafe for GatePlanMode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.