pub struct ProjectMetadata {
pub name: String,
pub version: Option<String>,
pub description: Option<String>,
pub git_ref: Option<String>,
pub git_commit: Option<String>,
pub generated_at: String,
}Expand description
Project metadata
Fields§
§name: StringProject name
version: Option<String>Project version (from Cargo.toml or pyproject.toml)
description: Option<String>Project description
git_ref: Option<String>Git ref (branch or tag) this was generated from
git_commit: Option<String>Git commit hash
generated_at: StringWhen the documentation was generated
Implementations§
Source§impl ProjectMetadata
impl ProjectMetadata
pub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_description(self, desc: impl Into<String>) -> Self
pub fn with_git_ref(self, git_ref: impl Into<String>) -> Self
pub fn with_git_commit(self, commit: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ProjectMetadata
impl Clone for ProjectMetadata
Source§fn clone(&self) -> ProjectMetadata
fn clone(&self) -> ProjectMetadata
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 ProjectMetadata
impl Debug for ProjectMetadata
Source§impl<'de> Deserialize<'de> for ProjectMetadata
impl<'de> Deserialize<'de> for ProjectMetadata
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 ProjectMetadata
impl RefUnwindSafe for ProjectMetadata
impl Send for ProjectMetadata
impl Sync for ProjectMetadata
impl Unpin for ProjectMetadata
impl UnsafeUnpin for ProjectMetadata
impl UnwindSafe for ProjectMetadata
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