#[non_exhaustive]pub enum InteractionHttpMethod {
Get,
Post,
Put,
Delete,
Other(String),
}Expand description
HTTP method a surface interaction is dispatched with (REST method model, B1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Get
Post
Put
Delete
Other(String)
An unknown value received from a newer peer.
The inner string is the raw value as it appeared on the wire.
Implementations§
Trait Implementations§
Source§impl Clone for InteractionHttpMethod
impl Clone for InteractionHttpMethod
Source§fn clone(&self) -> InteractionHttpMethod
fn clone(&self) -> InteractionHttpMethod
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 InteractionHttpMethod
impl Debug for InteractionHttpMethod
Source§impl Default for InteractionHttpMethod
impl Default for InteractionHttpMethod
Source§fn default() -> InteractionHttpMethod
fn default() -> InteractionHttpMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InteractionHttpMethod
impl<'de> Deserialize<'de> for InteractionHttpMethod
Source§fn deserialize<D>(
deserializer: D,
) -> Result<InteractionHttpMethod, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<InteractionHttpMethod, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InteractionHttpMethod
impl Display for InteractionHttpMethod
impl Eq for InteractionHttpMethod
Source§impl From<String> for InteractionHttpMethod
impl From<String> for InteractionHttpMethod
Source§fn from(s: String) -> InteractionHttpMethod
fn from(s: String) -> InteractionHttpMethod
Converts to this type from the input type.
Source§impl FromStr for InteractionHttpMethod
impl FromStr for InteractionHttpMethod
Source§type Err = ParseInteractionHttpMethodError
type Err = ParseInteractionHttpMethodError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<InteractionHttpMethod, <InteractionHttpMethod as FromStr>::Err>
fn from_str( s: &str, ) -> Result<InteractionHttpMethod, <InteractionHttpMethod as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for InteractionHttpMethod
impl PartialEq for InteractionHttpMethod
Source§impl Serialize for InteractionHttpMethod
impl Serialize for InteractionHttpMethod
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InteractionHttpMethod
Auto Trait Implementations§
impl Freeze for InteractionHttpMethod
impl RefUnwindSafe for InteractionHttpMethod
impl Send for InteractionHttpMethod
impl Sync for InteractionHttpMethod
impl Unpin for InteractionHttpMethod
impl UnsafeUnpin for InteractionHttpMethod
impl UnwindSafe for InteractionHttpMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.