Struct ofdb_seed::Api [−][src]
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]
&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>
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]
pub async fn get_most_popular_tags(
&self,
min_count: Option<usize>,
max_count: Option<usize>,
limit: Option<usize>,
offset: Option<usize>
) -> Result<Vec<TagFrequency>>[src]
&self,
min_count: Option<usize>,
max_count: Option<usize>,
limit: Option<usize>,
offset: Option<usize>
) -> Result<Vec<TagFrequency>>
Trait Implementations
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]
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,
pub 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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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.
pub 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>,