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 associated with a training.
Fields§
§href: Option<String>URL linking to the source.
id: Option<i64>Unique identifier of the source.
name: Option<String>Name of the source.
shortname: Option<String>Short name or abbreviation of the source.
longname: Option<String>Long name of the source.
spanish_name: Option<String>Spanish name of the source.
homepage: Option<String>Homepage URL of the source.
source_type: Option<Descriptor>Type descriptor of the source.
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