pub struct Source {
pub href: Option<String>,
pub id: Option<i64>,
pub name: Option<String>,
pub shortname: Option<String>,
pub longname: Option<String>,
pub spanish_name: Option<String>,
pub homepage: Option<String>,
pub source_type: Option<Descriptor>,
}Expand description
Represents a source (organization or entity) related to a record.
Fields§
§href: Option<String>Link to the API resource for this source.
id: Option<i64>The unique identifier of the source.
name: Option<String>The short name of the source.
shortname: Option<String>Optional shortname alternative.
longname: Option<String>Long name of the source.
spanish_name: Option<String>Spanish name (if applicable).
homepage: Option<String>Homepage URL of the source.
source_type: Option<Descriptor>Type of source (e.g., NGO, government, media).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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 Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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