MatchConditionQuery

Struct MatchConditionQuery 

Source
pub struct MatchConditionQuery { /* private fields */ }

Implementations§

Source§

impl MatchConditionQuery

Source

pub fn new(nv: String, state: String) -> Self

Trait Implementations§

Source§

impl FinalizeTrait for MatchConditionQuery

Source§

fn finalize(&self) -> String

End the query building process and return a string.
Source§

impl MatchActionTrait for MatchConditionQuery

Source§

fn delete(&self) -> Box<dyn ReturnTrait>

DELETE query function.
Source§

fn delete_detach(&self) -> Box<dyn ReturnTrait>

DELETE DETACH query function.
Source§

fn set(&self, prop: &str, value: PropType) -> Box<dyn ReturnTrait>

Pure SET query function. Read more
Source§

fn set_var(&self, nv: &str, prop: &str, value: PropType) -> Box<dyn ReturnTrait>

Pure SET query function with custom var. Read more
Source§

impl MatchConditionTrait for MatchConditionQuery

Source§

fn and( &mut self, prop: &str, op: CompOper, eq: PropType, ) -> Box<dyn MatchConditionTrait>

Pure AND query function. Read more
Source§

fn or( &mut self, prop: &str, op: CompOper, eq: PropType, ) -> Box<dyn MatchConditionTrait>

Pure OR query function. Read more
Source§

fn and_var( &mut self, nv: &str, prop: &str, op: CompOper, eq: PropType, ) -> Box<dyn MatchConditionTrait>

Pure AND query function with custom var. Read more
Source§

fn or_var( &mut self, nv: &str, prop: &str, op: CompOper, eq: PropType, ) -> Box<dyn MatchConditionTrait>

Pure OR query function with custom var. Read more
Source§

impl QueryTrait for MatchConditionQuery

Source§

fn create(&mut self, entitys: Vec<&Entity<'_>>) -> Box<dyn ReturnTrait>

Source§

fn match(&mut self, entity: &Entity<'_>, optional: bool) -> Box<dyn MatchTrait>

Source§

impl ReturnTrait for MatchConditionQuery

Source§

fn return(&mut self, nv: &str) -> Box<dyn ReturnParamTrait>

Source§

fn return_field(&mut self, nv: &str, field: &str) -> Box<dyn ReturnParamTrait>

Source§

fn return_many(&mut self, nvs: Vec<&str>) -> Box<dyn ReturnParamTrait>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.