pub struct Repository {
pub id: Uuid,
pub path: String,
pub name: String,
pub remote_url: Option<String>,
pub created_at: DateTime<Utc>,
pub last_session_at: Option<DateTime<Utc>>,
}Expand description
A tracked git repository.
Repositories are discovered when sessions reference working directories that are inside git repositories.
Note: This struct is defined for future use when repository tracking is implemented. Currently, sessions link directly to commits without explicit repository records.
Fields§
§id: UuidUnique identifier
path: StringAbsolute path on disk
name: StringRepository name (derived from path or remote)
remote_url: Option<String>Remote URL if available
created_at: DateTime<Utc>When first seen
last_session_at: Option<DateTime<Utc>>When last session was recorded
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
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 Repository
impl Debug for Repository
Source§impl<'de> Deserialize<'de> for Repository
impl<'de> Deserialize<'de> for Repository
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 Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository
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