pub struct ProjectInfo {
pub identifier: String,
pub code: Option<String>,
pub name: Option<String>,
pub url: Option<String>,
pub in_language: Option<Language>,
}Expand description
Project info for discovery API.
Full project metadata returned by the metadata endpoints.
Fields§
§identifier: StringProject identifier (e.g., “enwiki”)
code: Option<String>Project code (e.g., “wikipedia”)
name: Option<String>Project name
url: Option<String>Project URL
in_language: Option<Language>Project language
Trait Implementations§
Source§impl Clone for ProjectInfo
impl Clone for ProjectInfo
Source§fn clone(&self) -> ProjectInfo
fn clone(&self) -> ProjectInfo
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 ProjectInfo
impl Debug for ProjectInfo
Source§impl<'de> Deserialize<'de> for ProjectInfo
impl<'de> Deserialize<'de> for ProjectInfo
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 PartialEq for ProjectInfo
impl PartialEq for ProjectInfo
Source§impl Serialize for ProjectInfo
impl Serialize for ProjectInfo
impl StructuralPartialEq for ProjectInfo
Auto Trait Implementations§
impl Freeze for ProjectInfo
impl RefUnwindSafe for ProjectInfo
impl Send for ProjectInfo
impl Sync for ProjectInfo
impl Unpin for ProjectInfo
impl UnsafeUnpin for ProjectInfo
impl UnwindSafe for ProjectInfo
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