[−][src]Struct zotero::ZoteroInit
Create a Zotero client for a group library or a user library.
let z : Zotero = ZoteroInit::set_user("123456789", "bZARysJ579K5SdmYuaAJ"); // Perform some operation with Zotero let items = z.get_items(None); for item in items { println!("{:#?}", item) }
Fields
library_type: Option<LibraryType<'a>>
Methods
impl<'a> ZoteroInit<'a>
[src]
pub fn set_group<S: Into<Option<&'a str>>>(
group_id: &'a str,
api_key: S
) -> Zotero<'a>
[src]
group_id: &'a str,
api_key: S
) -> Zotero<'a>
Create a Zotero client for a group library. According to group policy API key might be optional.
// With an API key let z = ZoteroInit::set_group("123456789", "bZARysJ579K5SdmYuaAJ"); // Without API key let z = ZoteroInit::set_group("123456789", None);
pub fn set_user(user_id: &'a str, api_key: &'a str) -> Zotero<'a>
[src]
Create a Zotero client for a user library.
let z = ZoteroInit::set_user("123456789", "bZARysJ579K5SdmYuaAJ");
Trait Implementations
impl<'a> PartialEq<ZoteroInit<'a>> for ZoteroInit<'a>
[src]
fn eq(&self, other: &ZoteroInit<'a>) -> bool
[src]
fn ne(&self, other: &ZoteroInit<'a>) -> bool
[src]
impl<'a> Debug for ZoteroInit<'a>
[src]
Auto Trait Implementations
impl<'a> Send for ZoteroInit<'a>
impl<'a> Sync for ZoteroInit<'a>
impl<'a> Unpin for ZoteroInit<'a>
impl<'a> UnwindSafe for ZoteroInit<'a>
impl<'a> RefUnwindSafe for ZoteroInit<'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,