pub struct HttpBinding {
pub method: HttpMethod,
pub path: String,
}Expand description
The HTTP projection of a protocol-neutral operation contract.
Fields§
§method: HttpMethod§path: StringImplementations§
Source§impl HttpBinding
impl HttpBinding
pub fn new(method: HttpMethod, path: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for HttpBinding
impl Clone for HttpBinding
Source§fn clone(&self) -> HttpBinding
fn clone(&self) -> HttpBinding
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 HttpBinding
impl Debug for HttpBinding
Source§impl<'de> Deserialize<'de> for HttpBinding
impl<'de> Deserialize<'de> for HttpBinding
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 HttpBinding
Source§impl PartialEq for HttpBinding
impl PartialEq for HttpBinding
Source§impl Serialize for HttpBinding
impl Serialize for HttpBinding
impl StructuralPartialEq for HttpBinding
Auto Trait Implementations§
impl Freeze for HttpBinding
impl RefUnwindSafe for HttpBinding
impl Send for HttpBinding
impl Sync for HttpBinding
impl Unpin for HttpBinding
impl UnsafeUnpin for HttpBinding
impl UnwindSafe for HttpBinding
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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