pub struct License {
pub identifier: Option<String>,
pub name: String,
pub url: String,
}Expand description
License information.
Describes the license under which article content is published. Most Wikimedia content is CC-BY-SA licensed.
§Example
use wme_models::License;
let license = License {
identifier: Some("CC-BY-SA-4.0".to_string()),
name: "Creative Commons Attribution Share Alike 4.0".to_string(),
url: "https://creativecommons.org/licenses/by-sa/4.0/".to_string(),
};Fields§
§identifier: Option<String>License identifier (e.g., “CC-BY-SA-4.0”)
name: StringLicense name
url: StringLicense URL
Trait Implementations§
Source§impl<'de> Deserialize<'de> for License
impl<'de> Deserialize<'de> for License
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
impl StructuralPartialEq for License
Auto Trait Implementations§
impl Freeze for License
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnsafeUnpin for License
impl UnwindSafe for License
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