pub enum BibliographyKey {
ISBN(String),
LCCN(String),
OCLC(String),
OLID(String),
}
Variants§
Implementations§
Source§impl BibliographyKey
impl BibliographyKey
pub fn from_tuple( (key, value): (String, String), ) -> Result<Self, OpenLibraryError>
Trait Implementations§
Source§impl Clone for BibliographyKey
impl Clone for BibliographyKey
Source§fn clone(&self) -> BibliographyKey
fn clone(&self) -> BibliographyKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BibliographyKey
impl Debug for BibliographyKey
Source§impl<'de> Deserialize<'de> for BibliographyKey
impl<'de> Deserialize<'de> for BibliographyKey
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BibliographyKey
impl Display for BibliographyKey
Source§impl Hash for BibliographyKey
impl Hash for BibliographyKey
Source§impl PartialEq for BibliographyKey
impl PartialEq for BibliographyKey
Source§impl Serialize for BibliographyKey
impl Serialize for BibliographyKey
impl Eq for BibliographyKey
impl StructuralPartialEq for BibliographyKey
Auto Trait Implementations§
impl Freeze for BibliographyKey
impl RefUnwindSafe for BibliographyKey
impl Send for BibliographyKey
impl Sync for BibliographyKey
impl Unpin for BibliographyKey
impl UnwindSafe for BibliographyKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.