[][src]Struct byo_graphql::Count

pub struct Count {
    pub totalCount: usize,
}

a structure matching { totalCount}, convenient when you want the number of items in a collections

Fields

totalCount: usize

Implementations

impl Count[src]

pub fn query(collection_name: &str, filter: &str) -> String[src]

build the query part for the count of something.

Can be used for a whole query or just a property. Example:

use byo_graphql::*;
assert_eq!(
    Count::query("repositories", "isFork: false"),
    r#"repositories(isFork: false){ totalCount }"#,
);

Trait Implementations

impl Clone for Count[src]

impl Copy for Count[src]

impl Debug for Count[src]

impl<'de> Deserialize<'de> for Count[src]

impl Into<usize> for Count[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.