Struct ofdb_seed::Api[][src]

pub struct Api { /* fields omitted */ }

OpenFairDB API

Implementations

impl Api[src]

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

pub async fn search(&self, txt: &str, bbox: &MapBbox) -> Result<SearchResponse>[src]

pub async fn places(&self, ids: &[String]) -> Result<Vec<Entry>>[src]

pub async fn create_place(&self, place: &NewPlace) -> Result<()>[src]

pub async fn update_place(&self, id: &str, place: &UpdatePlace) -> Result<()>[src]

pub async fn get_places_clearance_with_api_token(
    &self,
    api_token: &str
) -> Result<Vec<PendingClearanceForPlace>>
[src]

pub async fn get_place_history_with_api_token(
    &self,
    api_token: &str,
    id: &str
) -> Result<PlaceHistory>
[src]

pub async fn post_places_clearance_with_api_token(
    &self,
    api_token: &str,
    clearances: Vec<ClearanceForPlace>
) -> Result<ResultCount>
[src]

pub async fn post_login(&self, req: &Credentials) -> Result<()>[src]

pub async fn post_logout(&self) -> Result<()>[src]

pub async fn get_users_current(&self) -> Result<User>[src]

pub async fn get_tags(&self) -> Result<Vec<String>>[src]

Trait Implementations

impl Clone for Api[src]

impl Debug for Api[src]

Auto Trait Implementations

impl RefUnwindSafe for Api

impl Send for Api

impl Sync for Api

impl Unpin for Api

impl UnwindSafe for Api

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,