pub struct Repo {
pub metadata: Value,
pub branches: BTreeMap<String, String>,
pub commits: BTreeMap<String, Value>,
pub blobs: BTreeMap<String, String>,
pub trees: BTreeMap<String, BTreeMap<String, FileEntry>>,
pub triggers: Vec<Value>,
pub triggers_config_id: String,
pub associated_templates: Vec<String>,
}Expand description
A single git repository and its content-addressed object store.
Fields§
§metadata: ValueRepositoryMetadata-shaped JSON (id, arn, clone urls, dates, kms key).
branches: BTreeMap<String, String>Branch name -> tip commit id.
commits: BTreeMap<String, Value>Commit id -> Commit-shaped JSON.
blobs: BTreeMap<String, String>Blob id -> base64-encoded content bytes.
trees: BTreeMap<String, BTreeMap<String, FileEntry>>Commit id -> materialized working tree (path -> entry).
triggers: Vec<Value>Configured repository triggers (RepositoryTrigger-shaped JSON list).
triggers_config_id: StringThe current triggers configuration id (a UUID), empty when never set.
associated_templates: Vec<String>Approval-rule-template names associated with this repository.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Repo
impl<'de> Deserialize<'de> for Repo
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 Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnsafeUnpin for Repo
impl UnwindSafe for Repo
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