Skip to main content

Queryable

Trait Queryable 

Source
pub trait Queryable {
    // Required methods
    fn supports_field(field: &FieldName) -> bool;
    fn field_value(&self, field: &FieldName) -> SoapResult<ScalarValue>;
}
Expand description

Provides logical field values to the in-memory query evaluator.

Required Methods§

Source

fn supports_field(field: &FieldName) -> bool

Reports whether the entity exposes this logical query field.

Source

fn field_value(&self, field: &FieldName) -> SoapResult<ScalarValue>

Returns the value of a supported logical field.

Nullable fields return ScalarValue::Null. An unknown field must return SoapError::validation, even though the repository validates field support before evaluating entities.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§