[][src]Struct ofdb_seed::OfdbApi

pub struct OfdbApi { /* fields omitted */ }

OpenFairDB API

Implementations

impl OfdbApi[src]

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

pub async fn search<'_, '_, '_>(
    &'_ self,
    txt: &'_ str,
    bbox: &'_ str
) -> 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]

Trait Implementations

impl Clone for OfdbApi[src]

impl Debug for OfdbApi[src]

Auto Trait Implementations

impl RefUnwindSafe for OfdbApi

impl Send for OfdbApi

impl Sync for OfdbApi

impl Unpin for OfdbApi

impl UnwindSafe for OfdbApi

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> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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>,