pub enum RespondWith {
Default,
Markdown,
Html,
Text,
Frontmatter,
MarkdownFrontmatter,
Screenshot {
full_page: bool,
},
}Expand description
x-respond-with。
Variants§
Default
没给:pagesift 一直以来的输出(纯 Markdown)。
Markdown
Html
Text
Frontmatter
YAML front matter(title、description、url)+ 正文 Markdown。
MarkdownFrontmatter
同上,但不做正文识别(整页)。
Screenshot
截图(视口 / 整页),返回 data: URL。
Trait Implementations§
Source§impl Clone for RespondWith
impl Clone for RespondWith
impl Copy for RespondWith
Source§impl Debug for RespondWith
impl Debug for RespondWith
impl Eq for RespondWith
Source§impl PartialEq for RespondWith
impl PartialEq for RespondWith
impl StructuralPartialEq for RespondWith
Auto Trait Implementations§
impl Forget for RespondWith
impl Freeze for RespondWith
impl Move for RespondWith
impl RefUnwindSafe for RespondWith
impl Send for RespondWith
impl Sync for RespondWith
impl Unpin for RespondWith
impl UnsafeUnpin for RespondWith
impl UnwindSafe for RespondWith
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.