pub struct QueryRequestScope(/* private fields */);Expand description
A read-only view of an actual request’s identity and direct parent. Bodies remain in their own SelectQuery; a relation shares only this small header.
Implementations§
Source§impl QueryRequestScope
impl QueryRequestScope
pub fn root(name: impl Into<String>, intent: QueryIntent) -> Self
pub fn parent_request(&self) -> Option<&Self>
pub fn root_request(&self) -> &Self
pub fn request_name(&self) -> &str
pub fn comment(&self) -> &str
pub fn purpose(&self) -> &str
pub fn intent(&self) -> &QueryIntent
pub fn operation(&self) -> Option<&QueryOperation>
pub fn derive_operation( &self, name: impl Into<String>, operation: QueryOperation, ) -> Self
pub fn derive_helper( &self, name: impl Into<String>, comment: impl Into<String>, ) -> Result<Self, RequestIntentError>
pub fn derive_child( &self, name: impl Into<String>, comment: Option<&str>, ) -> Result<Self, RequestIntentError>
pub fn trace_chain(&self) -> Vec<TraceNode>
Trait Implementations§
Source§impl Clone for QueryRequestScope
impl Clone for QueryRequestScope
Source§impl Debug for QueryRequestScope
impl Debug for QueryRequestScope
impl Eq for QueryRequestScope
Auto Trait Implementations§
impl Freeze for QueryRequestScope
impl RefUnwindSafe for QueryRequestScope
impl Send for QueryRequestScope
impl Sync for QueryRequestScope
impl Unpin for QueryRequestScope
impl UnsafeUnpin for QueryRequestScope
impl UnwindSafe for QueryRequestScope
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