pub struct GateClassMatch {
pub id: String,
pub paths: Vec<String>,
}Expand description
use majordomus_cli::gates::GateClassMatch;
let hit = GateClassMatch { id: "docs".into(), paths: vec!["docs/CLI.md".into()] };
// the class, and the files of the change that put it in the plan — never the class alone,
// because a plan a reader cannot check is a plan a reader has to believe
assert_eq!(hit.paths.len(), 1);One class a change fell in, and the paths that put it there.
Fields§
§id: StringThe class’s identity.
paths: Vec<String>The changed paths this class covers.
Trait Implementations§
Source§impl Clone for GateClassMatch
impl Clone for GateClassMatch
Source§fn clone(&self) -> GateClassMatch
fn clone(&self) -> GateClassMatch
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 GateClassMatch
impl Debug for GateClassMatch
Source§impl<'de> Deserialize<'de> for GateClassMatch
impl<'de> Deserialize<'de> for GateClassMatch
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
Source§impl JsonSchema for GateClassMatch
impl JsonSchema for GateClassMatch
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 moreAuto Trait Implementations§
impl Freeze for GateClassMatch
impl RefUnwindSafe for GateClassMatch
impl Send for GateClassMatch
impl Sync for GateClassMatch
impl Unpin for GateClassMatch
impl UnsafeUnpin for GateClassMatch
impl UnwindSafe for GateClassMatch
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