pub struct ReceiptProfile {
pub name: &'static str,
pub expected_phase: &'static str,
pub expects_balance_change: bool,
pub expects_authority_change: bool,
pub expects_journal_append: bool,
pub min_changed_fields: u8,
}Expand description
A receipt profile describing what a receipt for a given mutation type looks like.
Fields§
§name: &'static strProfile name (e.g. “default-mutation”, “treasury-write”).
expected_phase: &'static strExpected phase.
expects_balance_change: boolWhether balance changes are expected.
Whether authority changes are expected.
expects_journal_append: boolWhether journal appends are expected.
min_changed_fields: u8Minimum expected changed fields.
Trait Implementations§
Source§impl Clone for ReceiptProfile
impl Clone for ReceiptProfile
Source§fn clone(&self) -> ReceiptProfile
fn clone(&self) -> ReceiptProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for ReceiptProfile
impl Display for ReceiptProfile
impl Copy for ReceiptProfile
Auto Trait Implementations§
impl Freeze for ReceiptProfile
impl RefUnwindSafe for ReceiptProfile
impl Send for ReceiptProfile
impl Sync for ReceiptProfile
impl Unpin for ReceiptProfile
impl UnsafeUnpin for ReceiptProfile
impl UnwindSafe for ReceiptProfile
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