[−][src]Struct misskey_api::model::query::Query
Implementations
impl<T> Query<T>
[src]
pub fn new() -> Self
[src]
Creates an empty Query
.
pub fn from_vec(vec: Vec<Vec<T>>) -> Self
[src]
Creates Query
from a vector which represents disjunction of conjunctions of T
.
pub fn into_vec(self) -> Vec<Vec<T>>
[src]
Turns Query
into a vector which represents disjunction of conjunctions of T
.
pub fn atom(x: impl Into<T>) -> Self
[src]
Creates Query
from a single element.
pub fn or(self, rhs: impl Into<Self>) -> Self
[src]
Disjunction of two queries.
pub fn and(self, rhs: impl Into<Self>) -> Self where
T: Clone,
[src]
T: Clone,
Conjunction of two queries. This operation is expensive for large rhs and implemented just for syntactic brevity of small queries.
For building larger queries, consider using Query::or
or Query::from_vec
.
Trait Implementations
impl<T: Clone> Clone for Query<T>
[src]
impl<T: Debug> Debug for Query<T>
[src]
impl<T: Default> Default for Query<T>
[src]
impl<'de, T> Deserialize<'de> for Query<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'_> From<&'_ str> for Query<String>
[src]
impl<'_> From<&'_ str> for Query<Tag>
[src]
impl<T> From<T> for Query<T>
[src]
impl<T> Serialize for Query<T> where
T: Serialize,
[src]
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for Query<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Query<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Query<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Query<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Query<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,