pub struct CoreSurface { /* private fields */ }Expand description
The core read surface, reduced from the vendored contract.
Implementations§
Source§impl CoreSurface
impl CoreSurface
Sourcepub fn reduce(reducer: &ReducerConfig<'_>) -> Option<Self>
pub fn reduce(reducer: &ReducerConfig<'_>) -> Option<Self>
Reduce the vendored contract under a consumer’s own reducer configuration.
The configuration only shapes the presentation names
(crate::cassettes::spec::Param::flag); wire names and
locations, which is all call_for reads, are the document’s
regardless. A consumer that renders this surface on a command line
passes its reserved flags here; one that only calls operations can use
core.
Sourcepub fn method(&self, operation_id: &str) -> Result<&Method>
pub fn method(&self, operation_id: &str) -> Result<&Method>
Look one operation up by the contract’s own operationId.
Sourcepub fn operation_ids(&self) -> impl Iterator<Item = &str>
pub fn operation_ids(&self) -> impl Iterator<Item = &str>
Every operationId in the vendored document, for the coverage gate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreSurface
impl RefUnwindSafe for CoreSurface
impl Send for CoreSurface
impl Sync for CoreSurface
impl Unpin for CoreSurface
impl UnsafeUnpin for CoreSurface
impl UnwindSafe for CoreSurface
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