pub struct ArrayQueryResult<T> {
pub result: T,
pub is_incomplete: bool,
}Expand description
An result type of querying an array of objects
Fields§
§result: TThe result value of the query.
is_incomplete: bool- false: Objects are queried successfully.
- true: There are some objects left(i.e. buffer was too small).
Implementations§
Source§impl ArrayQueryResult<()>
impl ArrayQueryResult<()>
pub fn from_vk_result(r: VkResult) -> Result<Self>
Source§impl<T> ArrayQueryResult<T>
impl<T> ArrayQueryResult<T>
pub fn with_result<U>(self, v: U) -> ArrayQueryResult<U>
pub fn map_result<U>(self, f: impl FnOnce(T) -> U) -> ArrayQueryResult<U>
pub fn assert_complete(self) -> T
Trait Implementations§
Source§impl<T: Clone> Clone for ArrayQueryResult<T>
impl<T: Clone> Clone for ArrayQueryResult<T>
Source§fn clone(&self) -> ArrayQueryResult<T>
fn clone(&self) -> ArrayQueryResult<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ArrayQueryResult<T>
impl<T: Debug> Debug for ArrayQueryResult<T>
Source§impl<T: Hash> Hash for ArrayQueryResult<T>
impl<T: Hash> Hash for ArrayQueryResult<T>
Source§impl<T: PartialEq> PartialEq for ArrayQueryResult<T>
impl<T: PartialEq> PartialEq for ArrayQueryResult<T>
Source§fn eq(&self, other: &ArrayQueryResult<T>) -> bool
fn eq(&self, other: &ArrayQueryResult<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Copy> Copy for ArrayQueryResult<T>
impl<T: Eq> Eq for ArrayQueryResult<T>
impl<T> StructuralPartialEq for ArrayQueryResult<T>
Auto Trait Implementations§
impl<T> Freeze for ArrayQueryResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ArrayQueryResult<T>where
T: RefUnwindSafe,
impl<T> Send for ArrayQueryResult<T>where
T: Send,
impl<T> Sync for ArrayQueryResult<T>where
T: Sync,
impl<T> Unpin for ArrayQueryResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for ArrayQueryResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ArrayQueryResult<T>where
T: UnwindSafe,
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