pub struct AdversarialInput {
pub input: &'static [u8],
pub reason: &'static str,
}Expand description
Adversarial input declared beside an operation in the frozen data contract.
Example: an unsigned-division operation can publish an input whose divisor bytes are zero and whose reason names the defined divide-by-zero behavior.
Fields§
§input: &'static [u8]Input bytes for the hostile or boundary case.
reason: &'static strWhy this input matters.
Trait Implementations§
Source§impl Clone for AdversarialInput
impl Clone for AdversarialInput
Source§fn clone(&self) -> AdversarialInput
fn clone(&self) -> AdversarialInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdversarialInput
impl Debug for AdversarialInput
Source§impl Hash for AdversarialInput
impl Hash for AdversarialInput
Source§impl PartialEq for AdversarialInput
impl PartialEq for AdversarialInput
impl Eq for AdversarialInput
impl StructuralPartialEq for AdversarialInput
Auto Trait Implementations§
impl Freeze for AdversarialInput
impl RefUnwindSafe for AdversarialInput
impl Send for AdversarialInput
impl Sync for AdversarialInput
impl Unpin for AdversarialInput
impl UnsafeUnpin for AdversarialInput
impl UnwindSafe for AdversarialInput
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