#[non_exhaustive]pub enum Signal {
StatusFound {
codes: Vec<u16>,
},
StatusNotFound {
codes: Vec<u16>,
},
BodyPresent {
text: String,
},
BodyAbsent {
text: String,
},
RedirectAbsent {
fragment: String,
},
}Expand description
A single piece of evidence about whether an account exists.
Signals are tagged in JSON by their kind. New variants will land for
Phase 2 length-baseline scoring; the enum is #[non_exhaustive] so
adding variants is not a breaking change.
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.
StatusFound
Votes Found when the response status is in codes.
StatusNotFound
Votes NotFound when the response status is in codes.
BodyPresent
Votes Found when the response body contains text.
BodyAbsent
Votes NotFound when the response body contains text.
Fields
RedirectAbsent
Votes NotFound when the final URL (post-redirect) contains
fragment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signal
impl<'de> Deserialize<'de> for Signal
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
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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