pub struct FunctionDef {
pub return_type: String,
pub callers: Callers,
pub requires_user_activation: bool,
}Expand description
What validation needs to know about one function.
Fields§
§return_type: StringThe declared returnType (string, validationResult, void, …).
callers: CallersThe declared allowedCallers.
requires_user_activation: boolWhether it may only run from a user gesture (requiresUserActivation).
Trait Implementations§
Source§impl Clone for FunctionDef
impl Clone for FunctionDef
Source§impl Debug for FunctionDef
impl Debug for FunctionDef
impl Eq for FunctionDef
Source§impl PartialEq for FunctionDef
impl PartialEq for FunctionDef
impl StructuralPartialEq for FunctionDef
Auto Trait Implementations§
impl Forget for FunctionDef
impl Freeze for FunctionDef
impl Move for FunctionDef
impl RefUnwindSafe for FunctionDef
impl Send for FunctionDefwhere
RawVecInner: Send,
impl Sync for FunctionDefwhere
RawVecInner: Sync,
impl Unpin for FunctionDef
impl UnsafeUnpin for FunctionDef
impl UnwindSafe for FunctionDefwhere
RawVecInner: UnwindSafe,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.