pub struct QueryContext {
pub caller_node_id: String,
pub current: QueryContextCurrentModule,
}Fields§
§caller_node_id: String§current: QueryContextCurrentModuleImplementations§
Source§impl QueryContext
impl QueryContext
pub fn new(caller_node_id: String) -> QueryContext
Trait Implementations§
Source§impl Clone for QueryContext
impl Clone for QueryContext
Source§fn clone(&self) -> QueryContext
fn clone(&self) -> QueryContext
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 QueryContext
impl Debug for QueryContext
Source§impl<'de> Deserialize<'de> for QueryContext
impl<'de> Deserialize<'de> for QueryContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HostCurrentNodeId for QueryContext
impl HostCurrentNodeId for QueryContext
fn current_node_id(&self) -> String
Source§impl HostTime for QueryContext
impl HostTime for QueryContext
Source§impl Serialize for QueryContext
impl Serialize for QueryContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for QueryContext
impl RefUnwindSafe for QueryContext
impl Send for QueryContext
impl Sync for QueryContext
impl Unpin for QueryContext
impl UnsafeUnpin for QueryContext
impl UnwindSafe for QueryContext
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