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§
Sourcefn outbound(self) -> ValidationResult<PipeQuery>
fn outbound(self) -> ValidationResult<PipeQuery>
Gets the outbound vertices or edges associated with this query.
Sourcefn inbound(self) -> ValidationResult<PipeQuery>
fn inbound(self) -> ValidationResult<PipeQuery>
Gets the inbound vertices or edges associated with this query.
Sourcefn with_property<T: Into<Identifier>>(
self,
name: T,
) -> ValidationResult<PipeWithPropertyPresenceQuery>
fn with_property<T: Into<Identifier>>( self, name: T, ) -> ValidationResult<PipeWithPropertyPresenceQuery>
Sourcefn without_property<T: Into<Identifier>>(
self,
name: T,
) -> ValidationResult<PipeWithPropertyPresenceQuery>
fn without_property<T: Into<Identifier>>( self, name: T, ) -> ValidationResult<PipeWithPropertyPresenceQuery>
Sourcefn with_property_equal_to<T: Into<Identifier>>(
self,
name: T,
value: Json,
) -> ValidationResult<PipeWithPropertyValueQuery>
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.
Sourcefn with_property_not_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>
Gets values with a property not equal to a given value.
§Arguments
name
: The name of the property.value
: The value of the property.
Sourcefn properties(self) -> ValidationResult<PipePropertyQuery>
fn properties(self) -> ValidationResult<PipePropertyQuery>
Gets the properties associated with the query results.
Sourcefn include(self) -> IncludeQuery
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.