pub enum Expression {
Text(TextEncoded),
Json(Box<JsonEncoded>),
}Expand description
An instance of an OGC CQL2 filter.
Variants§
Text(TextEncoded)
Instance generated from a successfully parsed text-encoded input string.
Json(Box<JsonEncoded>)
Instance generated from a successfully parsed JSON-encoded input string.
Implementations§
Source§impl Expression
impl Expression
Sourcepub fn try_from_text(s: &str) -> Result<Self, MyError>
pub fn try_from_text(s: &str) -> Result<Self, MyError>
Try to construct from a text-encoded string.
Sourcepub fn try_from_json(s: &str) -> Result<Self, MyError>
pub fn try_from_json(s: &str) -> Result<Self, MyError>
Try to construct from a JSON-encoded string.
Sourcepub fn as_text_encoded(&self) -> Option<&TextEncoded>
pub fn as_text_encoded(&self) -> Option<&TextEncoded>
Return a reference to the text-encoded variant as an Option.
Trait Implementations§
Source§impl Debug for Expression
impl Debug for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more