#[non_exhaustive]pub enum DeclaredNeed {
Text,
Markdown,
Html,
Links,
Metadata,
Fields,
Screenshot,
Raw,
}Expand description
What the caller wants back, coarsely.
This mirrors the need the client crate takes, minus the payloads, because the router only cares which kind of answer is wanted and never what is in it. A field selector is a strong signal about cost and a weak one about difficulty, which is why it is one slot rather than a description.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
The page as plain text.
Markdown
The page as markdown.
Html
The markup.
Links
The links and none of the content.
Metadata
The title, description and the rest of the declared metadata.
Fields
Named values pulled out of the page.
Screenshot
A picture of the page.
Raw
Whatever the service returns on its own.
Trait Implementations§
Source§impl Clone for DeclaredNeed
impl Clone for DeclaredNeed
Source§fn clone(&self) -> DeclaredNeed
fn clone(&self) -> DeclaredNeed
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 moreimpl Copy for DeclaredNeed
Source§impl Debug for DeclaredNeed
impl Debug for DeclaredNeed
Source§impl Default for DeclaredNeed
impl Default for DeclaredNeed
Source§fn default() -> DeclaredNeed
fn default() -> DeclaredNeed
Returns the “default value” for a type. Read more
impl Eq for DeclaredNeed
Source§impl Hash for DeclaredNeed
impl Hash for DeclaredNeed
Source§impl PartialEq for DeclaredNeed
impl PartialEq for DeclaredNeed
impl StructuralPartialEq for DeclaredNeed
Auto Trait Implementations§
impl Forget for DeclaredNeed
impl Freeze for DeclaredNeed
impl Move for DeclaredNeed
impl RefUnwindSafe for DeclaredNeed
impl Send for DeclaredNeed
impl Sync for DeclaredNeed
impl Unpin for DeclaredNeed
impl UnsafeUnpin for DeclaredNeed
impl UnwindSafe for DeclaredNeed
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