pub struct HttpBindingManifest {
pub binding_id: String,
pub method: i32,
pub path: String,
pub operation_name: Option<String>,
pub request_body_mode: i32,
pub response_body_mode: i32,
pub request_schema_json: Option<String>,
pub response_schema_json: Option<String>,
}Fields§
§binding_id: String§method: i32§path: String§operation_name: Option<String>§request_body_mode: i32§response_body_mode: i32§request_schema_json: Option<String>§response_schema_json: Option<String>Implementations§
Source§impl HttpBindingManifest
impl HttpBindingManifest
Sourcepub fn method(&self) -> HttpMethod
pub fn method(&self) -> HttpMethod
Returns the enum value of method, or the default if the field is set to an invalid enum value.
Sourcepub fn set_method(&mut self, value: HttpMethod)
pub fn set_method(&mut self, value: HttpMethod)
Sets method to the provided enum value.
Sourcepub fn operation_name(&self) -> &str
pub fn operation_name(&self) -> &str
Returns the value of operation_name, or the default value if operation_name is unset.
Sourcepub fn request_body_mode(&self) -> HttpBodyMode
pub fn request_body_mode(&self) -> HttpBodyMode
Returns the enum value of request_body_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_request_body_mode(&mut self, value: HttpBodyMode)
pub fn set_request_body_mode(&mut self, value: HttpBodyMode)
Sets request_body_mode to the provided enum value.
Sourcepub fn response_body_mode(&self) -> HttpBodyMode
pub fn response_body_mode(&self) -> HttpBodyMode
Returns the enum value of response_body_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_response_body_mode(&mut self, value: HttpBodyMode)
pub fn set_response_body_mode(&mut self, value: HttpBodyMode)
Sets response_body_mode to the provided enum value.
Sourcepub fn request_schema_json(&self) -> &str
pub fn request_schema_json(&self) -> &str
Returns the value of request_schema_json, or the default value if request_schema_json is unset.
Sourcepub fn response_schema_json(&self) -> &str
pub fn response_schema_json(&self) -> &str
Returns the value of response_schema_json, or the default value if response_schema_json is unset.
Trait Implementations§
Source§impl Clone for HttpBindingManifest
impl Clone for HttpBindingManifest
Source§fn clone(&self) -> HttpBindingManifest
fn clone(&self) -> HttpBindingManifest
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 HttpBindingManifest
impl Debug for HttpBindingManifest
Source§impl Default for HttpBindingManifest
impl Default for HttpBindingManifest
Source§impl<'de> Deserialize<'de> for HttpBindingManifest
impl<'de> Deserialize<'de> for HttpBindingManifest
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
impl Eq for HttpBindingManifest
Source§impl Hash for HttpBindingManifest
impl Hash for HttpBindingManifest
Source§impl Message for HttpBindingManifest
impl Message for HttpBindingManifest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for HttpBindingManifest
impl PartialEq for HttpBindingManifest
Source§impl Serialize for HttpBindingManifest
impl Serialize for HttpBindingManifest
impl StructuralPartialEq for HttpBindingManifest
Auto Trait Implementations§
impl Freeze for HttpBindingManifest
impl RefUnwindSafe for HttpBindingManifest
impl Send for HttpBindingManifest
impl Sync for HttpBindingManifest
impl Unpin for HttpBindingManifest
impl UnsafeUnpin for HttpBindingManifest
impl UnwindSafe for HttpBindingManifest
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