pub struct GetMarkdownParams {
pub stream: bool,
}Expand description
Fetch the current page rendered as Markdown.
[getMarkdown]: method Content.getMarkdown.
With stream: false the engine responds with the whole document in
GetMarkdownReturns::markdown. With stream: true the response is an
acknowledgement and the Markdown arrives as Content.markdownChunk
events terminated by Content.markdownDone (see EventMarkdownChunk /
EventMarkdownDone).
Not every engine implements Content.getMarkdown. Depending on the
engine’s unknown-method policy, an unimplemented call surfaces either a
protocol error or an empty success result — treat an empty object as “not
supported yet” and fall back to Page::content plus local conversion.
Fields§
§stream: boolWhen true, deliver the Markdown as Content.markdownChunk push
events plus a terminal Content.markdownDone event instead of one
big response.
Implementations§
Trait Implementations§
Source§impl Clone for GetMarkdownParams
impl Clone for GetMarkdownParams
Source§fn clone(&self) -> GetMarkdownParams
fn clone(&self) -> GetMarkdownParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Command for GetMarkdownParams
impl Command for GetMarkdownParams
impl Copy for GetMarkdownParams
Source§impl Debug for GetMarkdownParams
impl Debug for GetMarkdownParams
Source§impl Default for GetMarkdownParams
impl Default for GetMarkdownParams
Source§fn default() -> GetMarkdownParams
fn default() -> GetMarkdownParams
Source§impl<'de> Deserialize<'de> for GetMarkdownParams
impl<'de> Deserialize<'de> for GetMarkdownParams
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>,
impl Eq for GetMarkdownParams
Source§impl Method for GetMarkdownParams
impl Method for GetMarkdownParams
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNodeSource§impl MethodType for GetMarkdownParams
impl MethodType for GetMarkdownParams
Source§impl PartialEq for GetMarkdownParams
impl PartialEq for GetMarkdownParams
Source§impl Serialize for GetMarkdownParams
impl Serialize for GetMarkdownParams
impl StructuralPartialEq for GetMarkdownParams
Auto Trait Implementations§
impl Freeze for GetMarkdownParams
impl RefUnwindSafe for GetMarkdownParams
impl Send for GetMarkdownParams
impl Sync for GetMarkdownParams
impl Unpin for GetMarkdownParams
impl UnsafeUnpin for GetMarkdownParams
impl UnwindSafe for GetMarkdownParams
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.