pub struct FunctionQuery<'a> {
pub name: Option<Cow<'a, str>>,
pub module_name: Option<Cow<'a, str>>,
pub type_query: Option<TypeQuery<'a>>,
pub visibility: Option<Visibility>,
pub inputs: Cow<'a, [FunctionQueryParameter<'a>]>,
pub outputs: Cow<'a, [FunctionQueryParameter<'a>]>,
pub meta: Option<FunctionMetaQuery>,
}
Fields§
§name: Option<Cow<'a, str>>
§module_name: Option<Cow<'a, str>>
§type_query: Option<TypeQuery<'a>>
§visibility: Option<Visibility>
§inputs: Cow<'a, [FunctionQueryParameter<'a>]>
§outputs: Cow<'a, [FunctionQueryParameter<'a>]>
§meta: Option<FunctionMetaQuery>
Implementations§
Source§impl<'a> FunctionQuery<'a>
impl<'a> FunctionQuery<'a>
pub fn is_valid(&self, signature: &FunctionSignature) -> bool
pub fn as_hash(&self) -> u64
pub fn to_static(&self) -> FunctionQuery<'static>
Trait Implementations§
Source§impl<'a> Clone for FunctionQuery<'a>
impl<'a> Clone for FunctionQuery<'a>
Source§fn clone(&self) -> FunctionQuery<'a>
fn clone(&self) -> FunctionQuery<'a>
Returns a copy 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<'a> Debug for FunctionQuery<'a>
impl<'a> Debug for FunctionQuery<'a>
Source§impl<'a> Default for FunctionQuery<'a>
impl<'a> Default for FunctionQuery<'a>
Source§fn default() -> FunctionQuery<'a>
fn default() -> FunctionQuery<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Hash for FunctionQuery<'a>
impl<'a> Hash for FunctionQuery<'a>
Source§impl<'a> PartialEq for FunctionQuery<'a>
impl<'a> PartialEq for FunctionQuery<'a>
impl<'a> StructuralPartialEq for FunctionQuery<'a>
Auto Trait Implementations§
impl<'a> Freeze for FunctionQuery<'a>
impl<'a> RefUnwindSafe for FunctionQuery<'a>
impl<'a> Send for FunctionQuery<'a>
impl<'a> Sync for FunctionQuery<'a>
impl<'a> Unpin for FunctionQuery<'a>
impl<'a> UnwindSafe for FunctionQuery<'a>
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