pub enum ReturnFormat {
Raw,
Markdown,
Commonmark,
Html2text,
Text,
Screenshot,
Xml,
Bytes,
}Expand description
Enum representing different return formats.
Variants§
Raw
The default return format of the resource.
Markdown
Return the response as Markdown.
Commonmark
Return the response as Commonmark.
Html2text
Return the response as Html2text.
Text
Return the response as Text.
Screenshot
Returns a screenshot as Base64Url
Xml
Return the response as XML.
Bytes
Return the response as Bytes.
Trait Implementations§
Source§impl Clone for ReturnFormat
impl Clone for ReturnFormat
Source§fn clone(&self) -> ReturnFormat
fn clone(&self) -> ReturnFormat
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 ReturnFormat
impl Debug for ReturnFormat
Source§impl Default for ReturnFormat
impl Default for ReturnFormat
Source§fn default() -> ReturnFormat
fn default() -> ReturnFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReturnFormat
impl<'de> Deserialize<'de> for ReturnFormat
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
Source§impl Hash for ReturnFormat
impl Hash for ReturnFormat
Source§impl PartialEq for ReturnFormat
impl PartialEq for ReturnFormat
Source§impl Serialize for ReturnFormat
impl Serialize for ReturnFormat
impl Eq for ReturnFormat
impl StructuralPartialEq for ReturnFormat
Auto Trait Implementations§
impl Freeze for ReturnFormat
impl RefUnwindSafe for ReturnFormat
impl Send for ReturnFormat
impl Sync for ReturnFormat
impl Unpin for ReturnFormat
impl UnwindSafe for ReturnFormat
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,
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.