Enum ssb_validate::error::Error [−][src]
pub enum Error {
Show 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
Show fields
Fields of InvalidPreviousMessage
source: DecodeJsonErrormessage: Vec<u8>Show fields
Fields of InvalidMessage
source: DecodeJsonErrormessage: Vec<u8>Show fields
Fields of AuthorsDidNotMatch
Show fields
Fields of InvalidMessageCouldNotSerializeValue
source: EncodeJsonErrorShow fields
Show fields
Fields of ForkedFeed
previous_seq: u64Trait 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 Errorimpl !UnwindSafe for ErrorBlanket 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 = TShould always be Self
pub fn vzip(self) -> V