#[non_exhaustive]pub struct Project {Show 13 fields
pub badge: Option<String>,
pub color: Option<String>,
pub created_at: String,
pub has_public_url: bool,
pub human_readable_last_heartbeat_at: String,
pub human_readable_first_heartbeat_at: Option<String>,
pub id: String,
pub last_heartbeat_at: String,
pub first_heartbeat_at: Option<String>,
pub name: String,
pub repository: Option<String>,
pub url: Option<String>,
pub urlencoded_name: String,
}Expand description
A WakaTime project.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.badge: Option<String>Optional badge URL associated with the project.
color: Option<String>Optional hex color code used in the WakaTime web UI.
created_at: StringISO 8601 timestamp when the project was first seen.
has_public_url: boolWhether the project has a public shareable URL.
human_readable_last_heartbeat_at: StringHuman-readable last-heartbeat description (e.g. "2 hours ago").
human_readable_first_heartbeat_at: Option<String>Human-readable first-heartbeat description. Only set for accounts created after 2024-02-05.
id: StringUnique project identifier (UUID).
last_heartbeat_at: StringISO 8601 timestamp of the last received heartbeat.
first_heartbeat_at: Option<String>ISO 8601 timestamp of the first received heartbeat. Only set for accounts created after 2024-02-05.
name: StringProject name.
repository: Option<String>Linked repository URL (if configured).
url: Option<String>Public project URL (if has_public_url is true).
urlencoded_name: StringURL-encoded version of the project name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
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 Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
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