pub struct HttpMessageBinding {
pub headers: Option<RefOr<Schema>>,
pub status_code: Option<NonZeroU16>,
pub binding_version: Option<String>,
}Fields§
§headers: Option<RefOr<Schema>>A Schema object containing the definitions for HTTP-specific headers.
This schema MUST be of type object`` and have a properties` key.
status_code: Option<NonZeroU16>The HTTP response status code according to RFC 9110.
Only relevant for messages referenced by the Operation Reply Object,
as it defines the status code for the response.
In all other cases, this value can be safely ignored.
binding_version: Option<String>The version of this binding. If omitted, “latest” MUST be assumed.
Implementations§
Source§impl HttpMessageBinding
impl HttpMessageBinding
pub fn binding_version(&self) -> &str
Trait Implementations§
Source§impl Clone for HttpMessageBinding
impl Clone for HttpMessageBinding
Source§fn clone(&self) -> HttpMessageBinding
fn clone(&self) -> HttpMessageBinding
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 HttpMessageBinding
impl Debug for HttpMessageBinding
Source§impl<'de> Deserialize<'de> for HttpMessageBinding
impl<'de> Deserialize<'de> for HttpMessageBinding
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 PartialEq for HttpMessageBinding
impl PartialEq for HttpMessageBinding
Source§impl Serialize for HttpMessageBinding
impl Serialize for HttpMessageBinding
impl StructuralPartialEq for HttpMessageBinding
Auto Trait Implementations§
impl Freeze for HttpMessageBinding
impl RefUnwindSafe for HttpMessageBinding
impl Send for HttpMessageBinding
impl Sync for HttpMessageBinding
impl Unpin for HttpMessageBinding
impl UnsafeUnpin for HttpMessageBinding
impl UnwindSafe for HttpMessageBinding
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