pub struct SubjectDoc {
pub key: String,
pub name: Option<String>,
pub subject_type: Option<String>,
pub work_count: Option<u64>,
}Expand description
A subject document returned by /search/subjects.json.
Fields§
§key: String§name: Option<String>§subject_type: Option<String>§work_count: Option<u64>Trait Implementations§
Source§impl Clone for SubjectDoc
impl Clone for SubjectDoc
Source§fn clone(&self) -> SubjectDoc
fn clone(&self) -> SubjectDoc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubjectDoc
impl Debug for SubjectDoc
Source§impl Default for SubjectDoc
impl Default for SubjectDoc
Source§fn default() -> SubjectDoc
fn default() -> SubjectDoc
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubjectDoc
impl<'de> Deserialize<'de> for SubjectDoc
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
Auto Trait Implementations§
impl Freeze for SubjectDoc
impl RefUnwindSafe for SubjectDoc
impl Send for SubjectDoc
impl Sync for SubjectDoc
impl Unpin for SubjectDoc
impl UnsafeUnpin for SubjectDoc
impl UnwindSafe for SubjectDoc
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