Skip to main content

GraphClientExactQueries

Trait GraphClientExactQueries 

Source
pub trait GraphClientExactQueries: GraphEdge + WithTypedId
where Self::Ends: TypedEdgeEnds,
{ type FromIdQuery: QueryParams + QueryItemType<Item = Self>; type ToIdQuery: QueryParams + QueryItemType<Item = Self>; type BetweenIdQuery: QueryParams + QueryItemType<Item = Self>; // Required methods fn from_id_query( endpoint: &<<Self::Ends as TypedEdgeEnds>::A as EndpointSpec>::Value, id: &Self::Id, ) -> Self::FromIdQuery; fn to_id_query( endpoint: &<<Self::Ends as TypedEdgeEnds>::B as EndpointSpec>::Value, id: &Self::Id, ) -> Self::ToIdQuery; fn between_id_query( a: &<<Self::Ends as TypedEdgeEnds>::A as EndpointSpec>::Value, b: &<<Self::Ends as TypedEdgeEnds>::B as EndpointSpec>::Value, id: &Self::Id, ) -> Self::BetweenIdQuery; }
Expand description

Generated direct-key queries for one edge inside an endpoint scope.

Kept separate from GraphClientQueries so existing third-party trait implementations remain source-compatible.

Required Associated Types§

Required Methods§

Source

fn from_id_query( endpoint: &<<Self::Ends as TypedEdgeEnds>::A as EndpointSpec>::Value, id: &Self::Id, ) -> Self::FromIdQuery

Source

fn to_id_query( endpoint: &<<Self::Ends as TypedEdgeEnds>::B as EndpointSpec>::Value, id: &Self::Id, ) -> Self::ToIdQuery

Source

fn between_id_query( a: &<<Self::Ends as TypedEdgeEnds>::A as EndpointSpec>::Value, b: &<<Self::Ends as TypedEdgeEnds>::B as EndpointSpec>::Value, id: &Self::Id, ) -> Self::BetweenIdQuery

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§