Trait QueryExt

Source
pub trait QueryExt: Into<Query> {
    // Provided methods
    fn outbound(self) -> ValidationResult<PipeQuery> { ... }
    fn inbound(self) -> ValidationResult<PipeQuery> { ... }
    fn with_property<T: Into<Identifier>>(
        self,
        name: T,
    ) -> ValidationResult<PipeWithPropertyPresenceQuery> { ... }
    fn without_property<T: Into<Identifier>>(
        self,
        name: T,
    ) -> ValidationResult<PipeWithPropertyPresenceQuery> { ... }
    fn with_property_equal_to<T: Into<Identifier>>(
        self,
        name: T,
        value: Json,
    ) -> ValidationResult<PipeWithPropertyValueQuery> { ... }
    fn with_property_not_equal_to<T: Into<Identifier>>(
        self,
        name: T,
        value: Json,
    ) -> ValidationResult<PipeWithPropertyValueQuery> { ... }
    fn properties(self) -> ValidationResult<PipePropertyQuery> { ... }
    fn include(self) -> IncludeQuery { ... }
}
Expand description

Extension trait containing common functions for all query structs.

Provided Methods§

Source

fn outbound(self) -> ValidationResult<PipeQuery>

Gets the outbound vertices or edges associated with this query.

Source

fn inbound(self) -> ValidationResult<PipeQuery>

Gets the inbound vertices or edges associated with this query.

Source

fn with_property<T: Into<Identifier>>( self, name: T, ) -> ValidationResult<PipeWithPropertyPresenceQuery>

Gets values with a property.

§Arguments
  • name: The name of the property.
Source

fn without_property<T: Into<Identifier>>( self, name: T, ) -> ValidationResult<PipeWithPropertyPresenceQuery>

Gets values without a property.

§Arguments
  • name: The name of the property.
Source

fn with_property_equal_to<T: Into<Identifier>>( self, name: T, value: Json, ) -> ValidationResult<PipeWithPropertyValueQuery>

Gets values with a property equal to a given value.

§Arguments
  • name: The name of the property.
  • value: The value of the property.
Source

fn with_property_not_equal_to<T: Into<Identifier>>( self, name: T, value: Json, ) -> ValidationResult<PipeWithPropertyValueQuery>

Gets values with a property not equal to a given value.

§Arguments
  • name: The name of the property.
  • value: The value of the property.
Source

fn properties(self) -> ValidationResult<PipePropertyQuery>

Gets the properties associated with the query results.

Source

fn include(self) -> IncludeQuery

Include this query’s output, even if it is an intermediate result.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§