pub struct SurfaceChange {
pub impact: Impact,
pub direction: Direction,
pub surface: SurfaceKind,
pub capability: String,
pub id: String,
pub detail: String,
}Expand description
One movement of the public contract, with the reason it counts for what it does.
use majordomus_cli::release::compat::{Direction, Impact, SurfaceChange, SurfaceKind};
let change = SurfaceChange {
impact: Impact::Major,
direction: Direction::Removed,
surface: SurfaceKind::Http,
capability: "alpha.list".into(),
id: "GET /api/v1/alpha".into(),
detail: "the capability survives; this way of reaching it does not".into(),
};
assert_eq!(change.to_string(), "- route GET /api/v1/alpha");Fields§
§impact: ImpactHow much it moves the contract on its own.
direction: DirectionAdded, removed, or altered.
surface: SurfaceKindWhich promise it is.
capability: StringThe capability it belongs to.
id: StringThe thing itself: GET /api/v1/foo, majordomus_release_analysis, release.analysis.
detail: StringWhy this impact and not a smaller one, in one clause.
Trait Implementations§
Source§impl Clone for SurfaceChange
impl Clone for SurfaceChange
Source§fn clone(&self) -> SurfaceChange
fn clone(&self) -> SurfaceChange
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 SurfaceChange
impl Debug for SurfaceChange
Source§impl<'de> Deserialize<'de> for SurfaceChange
impl<'de> Deserialize<'de> for SurfaceChange
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 Display for SurfaceChange
impl Display for SurfaceChange
impl Eq for SurfaceChange
Source§impl JsonSchema for SurfaceChange
impl JsonSchema for SurfaceChange
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 SurfaceChange
impl PartialEq for SurfaceChange
Source§fn eq(&self, other: &SurfaceChange) -> bool
fn eq(&self, other: &SurfaceChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SurfaceChange
impl Serialize for SurfaceChange
impl StructuralPartialEq for SurfaceChange
Auto Trait Implementations§
impl Freeze for SurfaceChange
impl RefUnwindSafe for SurfaceChange
impl Send for SurfaceChange
impl Sync for SurfaceChange
impl Unpin for SurfaceChange
impl UnsafeUnpin for SurfaceChange
impl UnwindSafe for SurfaceChange
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.