pub struct Repository {Show 16 fields
pub id: Option<i64>,
pub identifier: Option<String>,
pub path: Option<String>,
pub description: Option<String>,
pub default_branch: Option<String>,
pub is_public: Option<bool>,
pub importing: Option<bool>,
pub git_url: Option<String>,
pub git_ssh_url: Option<String>,
pub is_empty: Option<bool>,
pub num_open_pulls: Option<i64>,
pub num_pulls: Option<i64>,
pub num_forks: Option<i64>,
pub size: Option<i64>,
pub created: Option<i64>,
pub updated: Option<i64>,
}Expand description
A repository.
This is the CLI’s own model, not the raw API DTO: the serde attributes are
the translation layer, so an upstream rename is absorbed with an alias
instead of breaking the JSON schema agents depend on.
GitFox returns two shapes here. GET /repos/{repo_ref} and
GET /spaces/{space_ref}/repos answer with RepoRepositoryOutput, which
carries is_public and importing; the instance-wide GET /repos answers
with TypesRepository, which does not. Both decode into this one struct,
and the fields the narrower shape lacks stay None — a repository whose
visibility is simply unknown, rather than one wrongly reported as private.
Fields§
§id: Option<i64>§identifier: Option<String>The repository name on its own, e.g. backend.
path: Option<String>The full space path, e.g. ai/backend.
description: Option<String>§default_branch: Option<String>§is_public: Option<bool>None when the endpoint that produced this does not report visibility.
importing: Option<bool>§git_url: Option<String>§git_ssh_url: Option<String>§is_empty: Option<bool>§num_open_pulls: Option<i64>§num_pulls: Option<i64>§num_forks: Option<i64>§size: Option<i64>Size in KiB, as GitFox reports it.
created: Option<i64>§updated: Option<i64>Implementations§
Source§impl Repository
impl Repository
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more