pub struct ActivityTimeline {
pub grid: [[usize; 24]; 7],
pub total_commits: usize,
pub peak_day: usize,
pub peak_hour: usize,
pub peak_count: usize,
pub max_count: usize,
}Expand description
活動タイムライン(曜日×時間帯のヒートマップ)
Fields§
§grid: [[usize; 24]; 7]7x24のグリッド(曜日 x 時間帯) grid[曜日][時間] = コミット数 曜日: 0=月, 1=火, 2=水, 3=木, 4=金, 5=土, 6=日
total_commits: usize総コミット数
peak_day: usizeピーク曜日(0-6)
peak_hour: usizeピーク時間(0-23)
peak_count: usizeピーク時のコミット数
max_count: usize最大コミット数(正規化用)
Implementations§
Trait Implementations§
Source§impl Clone for ActivityTimeline
impl Clone for ActivityTimeline
Source§fn clone(&self) -> ActivityTimeline
fn clone(&self) -> ActivityTimeline
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 ActivityTimeline
impl Debug for ActivityTimeline
Source§impl Default for ActivityTimeline
impl Default for ActivityTimeline
Source§fn default() -> ActivityTimeline
fn default() -> ActivityTimeline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActivityTimeline
impl RefUnwindSafe for ActivityTimeline
impl Send for ActivityTimeline
impl Sync for ActivityTimeline
impl Unpin for ActivityTimeline
impl UnwindSafe for ActivityTimeline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more