[−][src]Struct ofdb_seed::OfdbApi
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]
&'_ self,
txt: &'_ str,
bbox: &'_ str
) -> Result<SearchResponse>
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]
&'_ self,
id: &'_ str,
place: &'_ UpdatePlace
) -> Result<()>
pub async fn get_places_clearance_with_api_token<'_, '_>(
&'_ self,
api_token: &'_ str
) -> Result<Vec<PendingClearanceForPlace>>[src]
&'_ self,
api_token: &'_ str
) -> Result<Vec<PendingClearanceForPlace>>
pub async fn get_place_history_with_api_token<'_, '_, '_>(
&'_ self,
api_token: &'_ str,
id: &'_ str
) -> Result<PlaceHistory>[src]
&'_ self,
api_token: &'_ str,
id: &'_ str
) -> Result<PlaceHistory>
pub async fn post_places_clearance_with_api_token<'_, '_>(
&'_ self,
api_token: &'_ str,
clearances: Vec<ClearanceForPlace>
) -> Result<ResultCount>[src]
&'_ self,
api_token: &'_ str,
clearances: Vec<ClearanceForPlace>
) -> Result<ResultCount>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,