pub enum KeysPostBody {
ApplicationJson(PrivateKey),
MultipartFormData(String),
}Variants§
ApplicationJson(PrivateKey)
MultipartFormData(String)
Implementations§
Source§impl KeysPostBody
impl KeysPostBody
pub fn content_type(&self) -> &'static str
pub fn is_json(&self) -> bool
pub fn get_string(&self) -> String
Trait Implementations§
Source§impl Clone for KeysPostBody
impl Clone for KeysPostBody
Source§fn clone(&self) -> KeysPostBody
fn clone(&self) -> KeysPostBody
Returns a duplicate 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 KeysPostBody
impl Debug for KeysPostBody
Source§impl<'de> Deserialize<'de> for KeysPostBody
impl<'de> Deserialize<'de> for KeysPostBody
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
Auto Trait Implementations§
impl Freeze for KeysPostBody
impl RefUnwindSafe for KeysPostBody
impl Send for KeysPostBody
impl Sync for KeysPostBody
impl Unpin for KeysPostBody
impl UnwindSafe for KeysPostBody
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