[][src]Struct firebase_rs::FirebaseParams

pub struct FirebaseParams {
    pub url: Arc<Url>,
    pub params: HashMap<&'static str, String>,
}

Fields

url: Arc<Url>params: HashMap<&'static str, String>

Methods

impl FirebaseParams[src]

pub fn new(url: &Url) -> Self[src]

pub fn get(&self) -> Result<Response, RequestError>[src]

Gets data from Firebase

pub fn get_async<F>(&self, callback: F) -> JoinHandle<()> where
    F: Fn(Result<Response, RequestError>) + 'static + Send
[src]

Asynchronous method for delete. Takes a callback function and returns a handle.

pub fn get_url(&self) -> Result<Url, UrlParseError>[src]

pub fn add_param<T: ToString>(self, key: &'static str, value: T) -> Self[src]

pub fn set_params(&mut self)[src]

pub fn order_by(self, key: &str) -> Self[src]

pub fn limit_to_first(self, count: u32) -> Self[src]

pub fn limit_to_last(self, count: u32) -> Self[src]

pub fn start_at(self, index: u32) -> Self[src]

pub fn end_at(self, index: u32) -> Self[src]

pub fn equal_to(self, value: u32) -> Self[src]

pub fn shallow(self, flag: bool) -> Self[src]

pub fn format(self) -> Self[src]

Trait Implementations

impl Clone for FirebaseParams[src]

impl Debug for FirebaseParams[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> From<T> 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.