Enum musdk::HttpMethod
source · pub enum HttpMethod {
Get,
Head,
Post,
Put,
Patch,
Delete,
Options,
}
Variants§
Trait Implementations§
source§impl BorshDeserialize for HttpMethod
impl BorshDeserialize for HttpMethod
fn deserialize_reader<R>(reader: &mut R) -> Result<HttpMethod, Error>where R: Read,
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for HttpMethod
impl BorshSerialize for HttpMethod
source§impl Clone for HttpMethod
impl Clone for HttpMethod
source§fn clone(&self) -> HttpMethod
fn clone(&self) -> HttpMethod
Returns a copy of the value. Read more
1.0.0 · 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 HttpMethod
impl Debug for HttpMethod
source§impl EnumExt for HttpMethod
impl EnumExt for HttpMethod
source§fn deserialize_variant<R>(
reader: &mut R,
variant_idx: u8
) -> Result<HttpMethod, Error>where
R: Read,
fn deserialize_variant<R>( reader: &mut R, variant_idx: u8 ) -> Result<HttpMethod, Error>where R: Read,
Deserialises given variant of an enum from the reader. Read more