pub struct ManualContract {
pub family: String,
pub version: SpecVersion,
pub groups: Vec<Group>,
pub companions: Vec<Companion>,
pub protocols: Vec<ProtocolAttachment>,
}Expand description
Serialized contract within a ReferenceManual.
Fields§
§family: StringContractFamily name (e.g. "openapi", "protobuf").
version: SpecVersionParsed spec version for this contract instance.
groups: Vec<Group>Intra-contract groups (packages, tags, applications, etc.).
companions: Vec<Companion>Companion documents embedded in the switchback artifact.
protocols: Vec<ProtocolAttachment>Contract-level protocol attachments (for example server URLs).
Trait Implementations§
Source§impl Clone for ManualContract
impl Clone for ManualContract
Source§fn clone(&self) -> ManualContract
fn clone(&self) -> ManualContract
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 ManualContract
impl Debug for ManualContract
impl Eq for ManualContract
Source§impl PartialEq for ManualContract
impl PartialEq for ManualContract
Source§fn eq(&self, other: &ManualContract) -> bool
fn eq(&self, other: &ManualContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ManualContract
Auto Trait Implementations§
impl Freeze for ManualContract
impl RefUnwindSafe for ManualContract
impl Send for ManualContract
impl Sync for ManualContract
impl Unpin for ManualContract
impl UnsafeUnpin for ManualContract
impl UnwindSafe for ManualContract
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