pub enum ApprovalRefused {
NotRead,
Unreadable(String),
AgentCannotApprove {
approved: BuilderFee,
rate: BuilderFee,
},
OtherBuilder {
named: Address,
set: Address,
},
}Expand description
Why an order cannot go for its builder fee: what is not known is refused rather than guessed at.
Variants§
NotRead
What the account has approved is not read yet.
Unreadable(String)
The read of what the account has approved failed; why.
AgentCannotApprove
The order needs approveBuilderFee first, and an agent key signs: only the account’s own
key may sign that approval.
Fields
§
approved: BuilderFeeWhat the account has approved so far.
§
rate: BuilderFeeThe rate the account’s own key has to approve.
OtherBuilder
The order names another builder than the setting’s.
Trait Implementations§
Source§impl Clone for ApprovalRefused
impl Clone for ApprovalRefused
Source§impl Debug for ApprovalRefused
impl Debug for ApprovalRefused
Source§impl Display for ApprovalRefused
impl Display for ApprovalRefused
impl Eq for ApprovalRefused
Source§impl Error for ApprovalRefused
impl Error for ApprovalRefused
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 PartialEq for ApprovalRefused
impl PartialEq for ApprovalRefused
impl StructuralPartialEq for ApprovalRefused
Auto Trait Implementations§
impl Forget for ApprovalRefused
impl Freeze for ApprovalRefused
impl Move for ApprovalRefused
impl RefUnwindSafe for ApprovalRefused
impl Send for ApprovalRefused
impl Sync for ApprovalRefused
impl Unpin for ApprovalRefused
impl UnsafeUnpin for ApprovalRefused
impl UnwindSafe for ApprovalRefused
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.