Enum ppppp_msg::ValidateError
source · pub enum ValidateError {
Show 20 variants
Version {
version: u8,
},
Io(Error),
JsonCanon(Error),
Signature(SignatureError),
TangleMissingRootMessage {
root_msg_id: MsgId,
},
MsgTanglesMissingTangleRootMsgId {
root_msg_id: MsgId,
},
MsgDomainMustBeFeedDomain {
msg_domain: MsgDomain,
feed_domain: MsgDomain,
},
MsgAccountMustBeFeedAccount {
msg_account_id: AccountId,
feed_account_id: AccountId,
},
AccountCannotBeSelfInAFeedTangle {
account_id: AccountId,
},
AccountMustBeSelfInAFeedTangle {
account_id: AccountId,
},
VerifyingKeyMustBeFromAccount {
verifying_key: Box<VerifyingKey>,
verifying_keys: Box<Vec<VerifyingKey>>,
account_id: AccountId,
},
AccountTipsMustBeNullInAnAccountTangle {
account_tips: Vec<MsgId>,
},
TanglePrevDepthNotLower {
prev_msg_id: MsgId,
},
AllPrevUnknown,
DepthMustBeMaxPlusOne,
IfEmptyTangleThenMsgIdMustMatchTangleRootMsgId,
TangleRootMustNotHaveSelfTangles,
DataSizeDoesNotMatchMetadata,
DataHashDoesNotMatchMetadata,
DataMustBeNullOrStringOrObject {
msg_data: MsgData,
},
}
Variants§
Version
Io(Error)
JsonCanon(Error)
Signature(SignatureError)
TangleMissingRootMessage
MsgTanglesMissingTangleRootMsgId
MsgDomainMustBeFeedDomain
MsgAccountMustBeFeedAccount
AccountCannotBeSelfInAFeedTangle
AccountMustBeSelfInAFeedTangle
VerifyingKeyMustBeFromAccount
AccountTipsMustBeNullInAnAccountTangle
TanglePrevDepthNotLower
AllPrevUnknown
DepthMustBeMaxPlusOne
IfEmptyTangleThenMsgIdMustMatchTangleRootMsgId
TangleRootMustNotHaveSelfTangles
DataSizeDoesNotMatchMetadata
DataHashDoesNotMatchMetadata
DataMustBeNullOrStringOrObject
Trait Implementations§
source§impl Debug for ValidateError
impl Debug for ValidateError
source§impl Display for ValidateError
impl Display for ValidateError
source§impl Error for ValidateError
impl Error for ValidateError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl !UnwindSafe for ValidateError
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