[−][src]Struct warpgrapher::engine::objects::Node
Represents a node in the graph data structure for auto-generated CRUD operations and custom resolvers.
Examples
fn custom_resolve(facade: ResolverFacade<(), ()>) -> ExecutionResult { let typename = "User"; let mut props = HashMap::new(); props.insert("role".to_string(), Value::String("Admin".to_string())); let n = facade.create_node(typename, props); facade.resolve_node(&n) }
Implementations
impl<GlobalCtx, RequestCtx> Node<GlobalCtx, RequestCtx> where
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
[src]
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
Trait Implementations
impl<GlobalCtx: Clone, RequestCtx: Clone> Clone for Node<GlobalCtx, RequestCtx> where
GlobalCtx: GlobalContext,
RequestCtx: Debug + RequestContext,
[src]
GlobalCtx: GlobalContext,
RequestCtx: Debug + RequestContext,
fn clone(&self) -> Node<GlobalCtx, RequestCtx>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<GlobalCtx: Debug, RequestCtx: Debug> Debug for Node<GlobalCtx, RequestCtx> where
GlobalCtx: GlobalContext,
RequestCtx: Debug + RequestContext,
[src]
GlobalCtx: GlobalContext,
RequestCtx: Debug + RequestContext,
impl<GlobalCtx, RequestCtx> GraphQLType<DefaultScalarValue> for Node<GlobalCtx, RequestCtx> where
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
[src]
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
type Context = GraphQLContext<GlobalCtx, RequestCtx>
The expected context type for this GraphQL type Read more
type TypeInfo = Info
Type that may carry additional schema information Read more
fn name(info: &Self::TypeInfo) -> Option<&str>
[src]
fn concrete_type_name(
&self,
_context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
_context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn meta<'r>(info: &Self::TypeInfo, registry: &mut Registry<'r>) -> MetaType<'r> where
DefaultScalarValue: 'r,
[src]
DefaultScalarValue: 'r,
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
args: &Arguments<'_>,
executor: &Executor<'_, Self::Context>
) -> ExecutionResult
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
args: &Arguments<'_>,
executor: &Executor<'_, Self::Context>
) -> ExecutionResult
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
_selection_set: Option<&[Selection<'_>]>,
executor: &Executor<'_, Self::Context>
) -> ExecutionResult
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
_selection_set: Option<&[Selection<'_>]>,
executor: &Executor<'_, Self::Context>
) -> ExecutionResult
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Value<S>
Auto Trait Implementations
impl<GlobalCtx, RequestCtx> RefUnwindSafe for Node<GlobalCtx, RequestCtx> where
GlobalCtx: RefUnwindSafe,
RequestCtx: RefUnwindSafe,
GlobalCtx: RefUnwindSafe,
RequestCtx: RefUnwindSafe,
impl<GlobalCtx, RequestCtx> Send for Node<GlobalCtx, RequestCtx>
impl<GlobalCtx, RequestCtx> Sync for Node<GlobalCtx, RequestCtx>
impl<GlobalCtx, RequestCtx> Unpin for Node<GlobalCtx, RequestCtx> where
GlobalCtx: Unpin,
RequestCtx: Unpin,
GlobalCtx: Unpin,
RequestCtx: Unpin,
impl<GlobalCtx, RequestCtx> UnwindSafe for Node<GlobalCtx, RequestCtx> where
GlobalCtx: UnwindSafe,
RequestCtx: UnwindSafe,
GlobalCtx: UnwindSafe,
RequestCtx: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,