pub struct MethodCallQuery {
pub parent: Option<Box<MethodCallQuery>>,
pub location: Location,
}Expand description
A query for method calls matching a specific path. This can be used, for example, to look for axum routes
Fields§
§parent: Option<Box<MethodCallQuery>>If specified, this requires this method call to originate from a prior parent method call. For instance with the given source:
ⓘ
my_var.globals().set("something", 1).set("something_else", 2);By setting parent to the method call query of globals, we can enforce that the
set call is in a chain of globals and not a set on some other table.
location: LocationThe path to the module this method call sits in.
Trait Implementations§
Source§impl Clone for MethodCallQuery
impl Clone for MethodCallQuery
Source§fn clone(&self) -> MethodCallQuery
fn clone(&self) -> MethodCallQuery
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 Debug for MethodCallQuery
impl Debug for MethodCallQuery
Source§impl FromLua for MethodCallQuery
impl FromLua for MethodCallQuery
Source§impl IntoLua for MethodCallQuery
impl IntoLua for MethodCallQuery
Source§impl PartialEq for MethodCallQuery
impl PartialEq for MethodCallQuery
Source§fn eq(&self, other: &MethodCallQuery) -> bool
fn eq(&self, other: &MethodCallQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MethodCallQuery
impl StructuralPartialEq for MethodCallQuery
Auto Trait Implementations§
impl Freeze for MethodCallQuery
impl RefUnwindSafe for MethodCallQuery
impl Send for MethodCallQuery
impl Sync for MethodCallQuery
impl Unpin for MethodCallQuery
impl UnsafeUnpin for MethodCallQuery
impl UnwindSafe for MethodCallQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromLuaMulti for Twhere
T: FromLua,
impl<T> FromLuaMulti for Twhere
T: FromLua,
Source§fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue, i: usize, to: Option<&str>, lua: &Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &RawLua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &RawLua, ) -> Result<T, Error>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.