pub struct Contract {
pub endpoints: BTreeMap<EndpointKey, Endpoint>,
pub security_schemes: BTreeMap<String, SecurityScheme>,
pub unmodelled: Vec<Unmodelled>,
pub lint_candidates: Vec<LintCandidate>,
}Fields§
§endpoints: BTreeMap<EndpointKey, Endpoint>§security_schemes: BTreeMap<String, SecurityScheme>§unmodelled: Vec<Unmodelled>Constructs the ingester met and could not model.
Never empty silently: an Unknown reachable from a compared endpoint
becomes contract-partial, so the verdict says “not fully verified”
rather than “clean”.
lint_candidates: Vec<LintCandidate>Structural defects the ingester detected that require their own rule IDs
and cannot be represented as Unmodelled. Converted to findings by the
rules::lint pass after ingestion. See design/07-structural-lint.md.
Implementations§
Trait Implementations§
impl Eq for Contract
impl StructuralPartialEq for Contract
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnsafeUnpin for Contract
impl UnwindSafe for Contract
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,
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.