pub enum AmendmentError {
Show 18 variants
UnsupportedVersion(u32),
TextShape,
TextMismatch(&'static str),
UncommittedText,
MissingRedaction,
UnexpectedRedaction,
MissingRevision,
UnexpectedRevision,
RevisionShape(ReviseError),
MissingUpdate(AmendmentKind),
UnexpectedUpdate,
UpdateMismatch {
kind: AmendmentKind,
update: AmendmentKind,
},
NotAnObligation {
kind: AmendmentKind,
target: GovernanceLogId,
},
PrecedentialOnObligation(AmendmentKind),
FixedObligationField(String),
UnknownTarget(GovernanceLogId),
ForwardReference(GovernanceLogId),
WrongTargetHash(GovernanceLogId),
}Expand description
An amendment is malformed
Variants§
UnsupportedVersion(u32)
TextShape
TextMismatch(&'static str)
UncommittedText
MissingRedaction
UnexpectedRedaction
MissingRevision
UnexpectedRevision
RevisionShape(ReviseError)
MissingUpdate(AmendmentKind)
UnexpectedUpdate
UpdateMismatch
NotAnObligation
PrecedentialOnObligation(AmendmentKind)
FixedObligationField(String)
UnknownTarget(GovernanceLogId)
ForwardReference(GovernanceLogId)
WrongTargetHash(GovernanceLogId)
Trait Implementations§
Source§impl Clone for AmendmentError
impl Clone for AmendmentError
Source§impl Debug for AmendmentError
impl Debug for AmendmentError
Source§impl Display for AmendmentError
impl Display for AmendmentError
impl Eq for AmendmentError
Source§impl Error for AmendmentError
impl Error for AmendmentError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<AmendmentError> for ObligationRuleError
impl From<AmendmentError> for ObligationRuleError
Source§fn from(source: AmendmentError) -> Self
fn from(source: AmendmentError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AmendmentError
impl PartialEq for AmendmentError
impl StructuralPartialEq for AmendmentError
Auto Trait Implementations§
impl Freeze for AmendmentError
impl RefUnwindSafe for AmendmentError
impl Send for AmendmentError
impl Sync for AmendmentError
impl Unpin for AmendmentError
impl UnsafeUnpin for AmendmentError
impl UnwindSafe for AmendmentError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.