[−][src]Struct warpgrapher::engine::objects::Rel
Represents a relationship in the graph data structure for auto-generated CRUD operations and custom resolvers.
Examples
fn custom_resolve(facade: ResolverFacade<(), ()>) -> ExecutionResult { // do work let node_id = Value::String("12345678-1234-1234-1234-1234567890ab".to_string()); let mut hm1 = HashMap::new(); hm1.insert("role".to_string(), Value::String("member".to_string())); // return rel facade.resolve_rel(&facade.create_rel( Value::String("655c4e13-5075-45ea-97de-b43f800e5854".to_string()), Some(hm1), node_id, "DstNodeLabel")?) }
Trait Implementations
impl<GlobalCtx: Clone, RequestCtx: Clone> Clone for Rel<GlobalCtx, RequestCtx> where
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
[src]
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
impl<GlobalCtx: Debug, RequestCtx: Debug> Debug for Rel<GlobalCtx, RequestCtx> where
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
[src]
GlobalCtx: GlobalContext,
RequestCtx: RequestContext,
impl<GlobalCtx, RequestCtx> GraphQLType<DefaultScalarValue> for Rel<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<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
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 Rel<GlobalCtx, RequestCtx> where
GlobalCtx: RefUnwindSafe,
RequestCtx: RefUnwindSafe,
GlobalCtx: RefUnwindSafe,
RequestCtx: RefUnwindSafe,
impl<GlobalCtx, RequestCtx> Send for Rel<GlobalCtx, RequestCtx>
impl<GlobalCtx, RequestCtx> Sync for Rel<GlobalCtx, RequestCtx>
impl<GlobalCtx, RequestCtx> Unpin for Rel<GlobalCtx, RequestCtx> where
GlobalCtx: Unpin,
RequestCtx: Unpin,
GlobalCtx: Unpin,
RequestCtx: Unpin,
impl<GlobalCtx, RequestCtx> UnwindSafe for Rel<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>,