[−][src]Struct async_graphql::types::connection::Edge
The edge type output by the data source
Implementations
impl<C, T, E> Edge<C, T, E>
[src]
pub fn with_additional_fields(cursor: C, node: T, additional_fields: E) -> Self
[src]
Create a new edge, it can have some additional fields.
impl<C: CursorType, T> Edge<C, T, EmptyFields>
[src]
Trait Implementations
impl<C, T, E> ContainerType for Edge<C, T, E> where
C: CursorType + Send + Sync,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
[src]
C: CursorType + Send + Sync,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
fn resolve_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: &'life1 Context<'life2>
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn collect_all_fields<'a>(
&'a self,
ctx: &ContextSelectionSet<'a>,
fields: &mut Fields<'a>
) -> ServerResult<()> where
Self: Sized + Send + Sync,
[src]
&'a self,
ctx: &ContextSelectionSet<'a>,
fields: &mut Fields<'a>
) -> ServerResult<()> where
Self: Sized + Send + Sync,
#[must_use]fn find_entity<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
__arg1: &'life1 Context<'life2>,
_params: &'life3 Value
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
__arg1: &'life1 Context<'life2>,
_params: &'life3 Value
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: Sync + 'async_trait,
impl<C, T, E> ObjectType for Edge<C, T, E> where
C: CursorType + Send + Sync,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
[src]
C: CursorType + Send + Sync,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
impl<C, T, E> OutputValueType for Edge<C, T, E> where
C: CursorType + Send + Sync,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
[src]
C: CursorType + Send + Sync,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<C, T, E> Type for Edge<C, T, E> where
C: CursorType,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
[src]
C: CursorType,
T: OutputValueType + Send + Sync,
E: ObjectType + Sync + Send,
fn type_name() -> Cow<'static, str>
[src]
fn create_type_info(registry: &mut Registry) -> String
[src]
fn qualified_type_name() -> String
[src]
fn introspection_type_name(&self) -> Cow<'static, str>
[src]
Auto Trait Implementations
impl<C, T, E> RefUnwindSafe for Edge<C, T, E> where
C: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<C, T, E> Send for Edge<C, T, E> where
C: Send,
E: Send,
T: Send,
C: Send,
E: Send,
T: Send,
impl<C, T, E> Sync for Edge<C, T, E> where
C: Sync,
E: Sync,
T: Sync,
C: Sync,
E: Sync,
T: Sync,
impl<C, T, E> Unpin for Edge<C, T, E> where
C: Unpin,
E: Unpin,
T: Unpin,
C: Unpin,
E: Unpin,
T: Unpin,
impl<C, T, E> UnwindSafe for Edge<C, T, E> where
C: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
T: 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,