Struct HttpSchemaDiffContext

Source
pub struct HttpSchemaDiffContext { /* private fields */ }

Implementations§

Source§

impl HttpSchemaDiffContext

Source

pub fn new(source: Rc<HttpSchema>, target: Rc<HttpSchema>) -> Self

Trait Implementations§

Source§

impl Clone for HttpSchemaDiffContext

Source§

fn clone(&self) -> HttpSchemaDiffContext

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ComponentContainer<Example> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&Example>

Source§

fn deref_target(&self, reference: &str) -> Option<&Example>

Source§

impl ComponentContainer<Header> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&Header>

Source§

fn deref_target(&self, reference: &str) -> Option<&Header>

Source§

impl ComponentContainer<Link> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&Link>

Source§

fn deref_target(&self, reference: &str) -> Option<&Link>

Source§

impl ComponentContainer<Parameter> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&Parameter>

Source§

fn deref_target(&self, reference: &str) -> Option<&Parameter>

Source§

impl ComponentContainer<Path> for HttpSchemaDiffContext

Source§

fn deref_source(&self, _reference: &str) -> Option<&Path>

Source§

fn deref_target(&self, _reference: &str) -> Option<&Path>

Source§

impl ComponentContainer<RequestBody> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&RequestBody>

Source§

fn deref_target(&self, reference: &str) -> Option<&RequestBody>

Source§

impl ComponentContainer<Response> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&Response>

Source§

fn deref_target(&self, reference: &str) -> Option<&Response>

Source§

impl ComponentContainer<Schema> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&Schema>

Source§

fn deref_target(&self, reference: &str) -> Option<&Schema>

Source§

impl ComponentContainer<SecurityScheme> for HttpSchemaDiffContext

Source§

fn deref_source(&self, reference: &str) -> Option<&SecurityScheme>

Source§

fn deref_target(&self, reference: &str) -> Option<&SecurityScheme>

Source§

impl ComponentContainer<Value> for HttpSchemaDiffContext

Source§

fn deref_source(&self, _reference: &str) -> Option<&Value>

Source§

fn deref_target(&self, _reference: &str) -> Option<&Value>

Source§

impl Diff<Components, ComponentsDiff, HttpSchemaDiffContext> for Components

Source§

impl Diff<Contact, ContactDiff, HttpSchemaDiffContext> for Contact

Source§

impl Diff<Discriminator, DiscriminatorDiff, HttpSchemaDiffContext> for Discriminator

Source§

impl Diff<Encoding, EncodingDiff, HttpSchemaDiffContext> for Encoding

Source§

impl Diff<Example, ExampleDiff, HttpSchemaDiffContext> for Example

Source§

impl Diff<ExternalDoc, ExternalDocDiff, HttpSchemaDiffContext> for ExternalDoc

Source§

impl Diff<Header, HeaderDiff, HttpSchemaDiffContext> for Header

Source§

impl Diff<HttpSchema, HttpSchemaDiff, HttpSchemaDiffContext> for HttpSchema

Source§

impl Diff<Info, InfoDiff, HttpSchemaDiffContext> for Info

Source§

fn diff( &self, new: Option<&Info>, context: &HttpSchemaDiffContext, ) -> DiffResult<InfoDiff>

Source§

impl Diff<License, LicenseDiff, HttpSchemaDiffContext> for License

Source§

fn diff( &self, new: Option<&Link>, context: &HttpSchemaDiffContext, ) -> DiffResult<LinkDiff>

Source§

impl Diff<MediaType, MediaTypeDiff, HttpSchemaDiffContext> for MediaType

Source§

impl Diff<OAuthFlow, OAuthFlowDiff, HttpSchemaDiffContext> for OAuthFlow

Source§

impl Diff<OAuthFlows, OAuthFlowsDiff, HttpSchemaDiffContext> for OAuthFlows

Source§

impl Diff<Operation, OperationDiff, HttpSchemaDiffContext> for Operation

Source§

impl Diff<Parameter, ParameterDiff, HttpSchemaDiffContext> for Parameter

Source§

impl Diff<Path, PathDiff, HttpSchemaDiffContext> for Path

Source§

fn diff( &self, new: Option<&Path>, context: &HttpSchemaDiffContext, ) -> DiffResult<PathDiff>

Source§

impl Diff<RequestBody, RequestBodyDiff, HttpSchemaDiffContext> for RequestBody

Source§

impl Diff<Response, ResponseDiff, HttpSchemaDiffContext> for Response

Source§

impl Diff<Schema, SchemaDiff, HttpSchemaDiffContext> for Schema

Source§

impl Diff<SecurityScheme, SecuritySchemeDiff, HttpSchemaDiffContext> for SecurityScheme

Source§

impl Diff<Server, ServerDiff, HttpSchemaDiffContext> for Server

Source§

impl Diff<ServerVariable, ServerVariableDiff, HttpSchemaDiffContext> for ServerVariable

Source§

impl Diff<Tag, TagDiff, HttpSchemaDiffContext> for Tag

Source§

fn diff( &self, new: Option<&Tag>, context: &HttpSchemaDiffContext, ) -> DiffResult<TagDiff>

Source§

impl Diff<Xml, XmlDiff, HttpSchemaDiffContext> for Xml

Source§

fn diff( &self, new: Option<&Xml>, context: &HttpSchemaDiffContext, ) -> DiffResult<XmlDiff>

Source§

impl DiffCache<ExampleDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, reference: &str) -> Option<Arc<DiffResult<ExampleDiff>>>

Source§

fn set_diff(&self, reference: &str, component: Arc<DiffResult<ExampleDiff>>)

Source§

impl DiffCache<HeaderDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, reference: &str) -> Option<Arc<DiffResult<HeaderDiff>>>

Source§

fn set_diff(&self, reference: &str, component: Arc<DiffResult<HeaderDiff>>)

Source§

impl DiffCache<LinkDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, reference: &str) -> Option<Arc<DiffResult<LinkDiff>>>

Source§

fn set_diff(&self, reference: &str, component: Arc<DiffResult<LinkDiff>>)

Source§

impl DiffCache<ParameterDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, reference: &str) -> Option<Arc<DiffResult<ParameterDiff>>>

Source§

fn set_diff(&self, reference: &str, component: Arc<DiffResult<ParameterDiff>>)

Source§

impl DiffCache<PathDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, _reference: &str) -> Option<Arc<DiffResult<PathDiff>>>

Source§

fn set_diff(&self, _reference: &str, _component: Arc<DiffResult<PathDiff>>)

Source§

impl DiffCache<RequestBodyDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, reference: &str) -> Option<Arc<DiffResult<RequestBodyDiff>>>

Source§

fn set_diff(&self, reference: &str, component: Arc<DiffResult<RequestBodyDiff>>)

Source§

impl DiffCache<ResponseDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, reference: &str) -> Option<Arc<DiffResult<ResponseDiff>>>

Source§

fn set_diff(&self, reference: &str, component: Arc<DiffResult<ResponseDiff>>)

Source§

impl DiffCache<SchemaDiff> for HttpSchemaDiffContext

Source§

fn get_diff(&self, reference: &str) -> Option<Arc<DiffResult<SchemaDiff>>>

Source§

fn set_diff(&self, reference: &str, component: Arc<DiffResult<SchemaDiff>>)

Source§

impl DiffCache<SecuritySchemeDiff> for HttpSchemaDiffContext

Source§

fn get_diff( &self, reference: &str, ) -> Option<Arc<DiffResult<SecuritySchemeDiff>>>

Source§

fn set_diff( &self, reference: &str, component: Arc<DiffResult<SecuritySchemeDiff>>, )

Source§

impl DiffCache<Value> for HttpSchemaDiffContext

Source§

fn get_diff(&self, _reference: &str) -> Option<Arc<DiffResult<Value>>>

Source§

fn set_diff(&self, _reference: &str, _component: Arc<DiffResult<Value>>)

Source§

impl DiffContext for HttpSchemaDiffContext

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more