Enum ssb_validate::error::Error [−][src]
pub enum Error {}Show 15 variants
InvalidPreviousMessage { source: DecodeJsonError, message: Vec<u8>, }, InvalidMessage { source: DecodeJsonError, message: Vec<u8>, }, InvalidMessageValueOrder { message: Vec<u8>, }, AuthorsDidNotMatch { previous_author: String, author: String, }, FirstMessageDidNotHaveSequenceOfOne { message: Vec<u8>, }, FirstMessageDidNotHavePreviousOfNull { message: Vec<u8>, }, InvalidHashFunction { message: Vec<u8>, }, InvalidBase64 { message: Vec<u8>, }, InvalidMessageValueLength { message: Vec<u8>, }, InvalidSequenceNumber { message: Vec<u8>, actual: u64, expected: u64, }, InvalidMessageNoValue, InvalidMessageCouldNotSerializeValue { source: EncodeJsonError, }, ActualHashDidNotMatchKey { message: Vec<u8>, actual_hash: Multihash, expected_hash: Multihash, }, PreviousWasNull, ForkedFeed { previous_seq: u64, },
Variants
Fields of InvalidPreviousMessage
source: DecodeJsonError
message: Vec<u8>
Fields of InvalidMessage
source: DecodeJsonError
message: Vec<u8>
Fields of AuthorsDidNotMatch
Fields of InvalidMessageCouldNotSerializeValue
source: EncodeJsonError
Fields of ForkedFeed
previous_seq: u64
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self