pub struct GetMarkdownReturns {
pub markdown: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
The response to Content.getMarkdown.
For a single-shot request a supporting engine sets markdown; for a
streaming request the response is typically an acknowledgement with no
markdown field. An engine that does not implement the method may also
answer with an empty object — GetMarkdownReturns::is_empty detects
that “not supported yet” shape. Any additional server-specific fields are
preserved losslessly in extra, so the client stays neutral and
forward-compatible.
Fields§
§markdown: Option<String>The page rendered as Markdown (single-shot mode). Absent in a streaming acknowledgement and in the empty “not supported” response.
extra: BTreeMap<String, Value>Any additional fields the server reported, preserved losslessly and opaquely (round-trips on re-serialization).
Implementations§
Trait Implementations§
Source§impl Clone for GetMarkdownReturns
impl Clone for GetMarkdownReturns
Source§fn clone(&self) -> GetMarkdownReturns
fn clone(&self) -> GetMarkdownReturns
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 GetMarkdownReturns
impl Debug for GetMarkdownReturns
Source§impl Default for GetMarkdownReturns
impl Default for GetMarkdownReturns
Source§fn default() -> GetMarkdownReturns
fn default() -> GetMarkdownReturns
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetMarkdownReturns
impl<'de> Deserialize<'de> for GetMarkdownReturns
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 PartialEq for GetMarkdownReturns
impl PartialEq for GetMarkdownReturns
Source§impl Serialize for GetMarkdownReturns
impl Serialize for GetMarkdownReturns
impl StructuralPartialEq for GetMarkdownReturns
Auto Trait Implementations§
impl Freeze for GetMarkdownReturns
impl RefUnwindSafe for GetMarkdownReturns
impl Send for GetMarkdownReturns
impl Sync for GetMarkdownReturns
impl Unpin for GetMarkdownReturns
impl UnsafeUnpin for GetMarkdownReturns
impl UnwindSafe for GetMarkdownReturns
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