[−][src]Struct zotero::Zotero
A struct representing a Zotero client.
Fields
library_type: LibraryType<'a>
Trait Implementations
impl<'a> Delete<'a> for Zotero<'a>
[src]
fn delete_request(
&self,
params: &str,
last_version: &str
) -> Result<Value, Box<dyn Error>>
[src]
&self,
params: &str,
last_version: &str
) -> Result<Value, Box<dyn Error>>
fn get_id(&self) -> &'a str
[src]
fn delete_item<S: AsRef<str> + Display>(
&self,
item_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
[src]
&self,
item_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
fn delete_items<S: AsRef<str> + Display>(
&self,
items_keys: Vec<S>,
last_version: S
) -> Result<Value, Box<dyn Error>>
[src]
&self,
items_keys: Vec<S>,
last_version: S
) -> Result<Value, Box<dyn Error>>
fn delete_collection<S: AsRef<str> + Display>(
&self,
item_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
[src]
&self,
item_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
fn delete_search<S: AsRef<str> + Display>(
&self,
search_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
[src]
&self,
search_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
fn delete_tag<S: AsRef<str> + Display>(
&self,
tag_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
[src]
&self,
tag_key: S,
last_version: S
) -> Result<Value, Box<dyn Error>>
fn delete_tags<S: AsRef<str> + Display>(
&self,
tags_keys: Vec<S>,
last_version: S
) -> Result<Value, Box<dyn Error>>
[src]
&self,
tags_keys: Vec<S>,
last_version: S
) -> Result<Value, Box<dyn Error>>
impl<'a> Get<'a> for Zotero<'a>
[src]
fn get_request<S: AsRef<str> + Display>(
&self,
params: S,
extra_params: Option<&str>
) -> Result<Value, Box<dyn Error>>
[src]
&self,
params: S,
extra_params: Option<&str>
) -> Result<Value, Box<dyn Error>>
fn get_id(&self) -> &'a str
[src]
fn get_api_key(&self) -> &'a str
[src]
fn get_api_key_info<I: Into<Option<&'a str>>>(
&self,
extra_params: I
) -> Result<Value, Box<dyn Error>>
[src]
&self,
extra_params: I
) -> Result<Value, Box<dyn Error>>
fn get_item<I: Into<Option<&'a str>>>(
&self,
item_id: &'a str,
extra_params: I
) -> Result<Item, Box<dyn Error>>
[src]
&self,
item_id: &'a str,
extra_params: I
) -> Result<Item, Box<dyn Error>>
fn get_items<I: Into<Option<&'a str>>>(
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
[src]
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
fn get_top_items<I: Into<Option<&'a str>>>(
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
[src]
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
fn get_trashed_items<I: Into<Option<&'a str>>>(
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
[src]
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
fn get_publications<I: Into<Option<&'a str>>>(
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
[src]
&self,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
fn get_collection<I: Into<Option<&'a str>>>(
&self,
collection_id: &'a str,
extra_params: I
) -> Result<Collection, Box<dyn Error>>
[src]
&self,
collection_id: &'a str,
extra_params: I
) -> Result<Collection, Box<dyn Error>>
fn get_collection_by_name<I: Into<Option<&'a str>>>(
&self,
collection_name: &'a str,
extra_params: I
) -> Result<Option<Collection>, Box<dyn Error>>
[src]
&self,
collection_name: &'a str,
extra_params: I
) -> Result<Option<Collection>, Box<dyn Error>>
fn get_collections_by_names<I: Into<Option<&'a str>>>(
&self,
collection_names: Vec<&'a str>,
extra_params: I
) -> Result<Option<Vec<Collection>>, Box<dyn Error>>
[src]
&self,
collection_names: Vec<&'a str>,
extra_params: I
) -> Result<Option<Vec<Collection>>, Box<dyn Error>>
fn get_collections<I: Into<Option<&'a str>>>(
&self,
extra_params: I
) -> Result<Vec<Collection>, Box<dyn Error>>
[src]
&self,
extra_params: I
) -> Result<Vec<Collection>, Box<dyn Error>>
fn get_top_collections<I: Into<Option<&'a str>>>(
&self,
extra_params: I
) -> Result<Vec<Collection>, Box<dyn Error>>
[src]
&self,
extra_params: I
) -> Result<Vec<Collection>, Box<dyn Error>>
fn get_collection_items<I: Into<Option<&'a str>>>(
&self,
collection_id: &'a str,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
[src]
&self,
collection_id: &'a str,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
fn get_collection_top_items<I: Into<Option<&'a str>>>(
&self,
collection_id: &'a str,
item_id: &'a str,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
[src]
&self,
collection_id: &'a str,
item_id: &'a str,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
fn get_subset<I: Into<Option<&'a str>>>(
&self,
item_ids: Vec<&'a str>,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
[src]
&self,
item_ids: Vec<&'a str>,
extra_params: I
) -> Result<Vec<Item>, Box<dyn Error>>
impl<'a> Patch<'a> for Zotero<'a>
[src]
fn patch_request<T: Serialize>(
&self,
params: &str,
json_body: T
) -> Result<Value, Box<dyn Error>>
[src]
&self,
params: &str,
json_body: T
) -> Result<Value, Box<dyn Error>>
fn get_id(&self) -> &'a str
[src]
fn update_item<T: Serialize, S: AsRef<str> + Display>(
&self,
item_key: S,
item_data: T
) -> Result<Value, Box<dyn Error>>
[src]
&self,
item_key: S,
item_data: T
) -> Result<Value, Box<dyn Error>>
impl<'a> Post<'a> for Zotero<'a>
[src]
fn post_request<T: Serialize, S: AsRef<str> + Display>(
&self,
params: S,
json_body: T
) -> Result<Value, Box<dyn Error>>
[src]
&self,
params: S,
json_body: T
) -> Result<Value, Box<dyn Error>>
fn get_id(&self) -> &'a str
[src]
fn create_new_item<T: Serialize>(
&self,
item: T
) -> Result<Value, Box<dyn Error>>
[src]
&self,
item: T
) -> Result<Value, Box<dyn Error>>
fn create_new_items<T: Serialize>(
&self,
item: Vec<T>
) -> Result<Value, Box<dyn Error>>
[src]
&self,
item: Vec<T>
) -> Result<Value, Box<dyn Error>>
fn create_new_collection<T: Serialize>(
&self,
item: T
) -> Result<Value, Box<dyn Error>>
[src]
&self,
item: T
) -> Result<Value, Box<dyn Error>>
fn create_new_collections<T: Serialize>(
&self,
item: Vec<T>
) -> Result<Value, Box<dyn Error>>
[src]
&self,
item: Vec<T>
) -> Result<Value, Box<dyn Error>>
impl<'a> PartialEq<Zotero<'a>> for Zotero<'a>
[src]
impl<'a> Debug for Zotero<'a>
[src]
Auto Trait Implementations
impl<'a> Send for Zotero<'a>
impl<'a> Sync for Zotero<'a>
impl<'a> Unpin for Zotero<'a>
impl<'a> UnwindSafe for Zotero<'a>
impl<'a> RefUnwindSafe for Zotero<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,