pub struct ProviderRepository {
pub connection: Option<RecordRef>,
pub provider_repository_id: String,
pub clone_url: String,
pub name: String,
pub private: bool,
pub installation_id: String,
pub linked_spools: Vec<SpoolRef>,
pub default_branch: String,
pub refs: Vec<ProviderRef>,
pub refs_status: Option<SectionStatus>,
pub hash_algorithm: i32,
}Fields§
§connection: Option<RecordRef>§provider_repository_id: String§clone_url: String§name: String§private: bool§installation_id: StringExact installation whose user grant listed this repository. CommitImportJob verifies this association again before selecting provider custody.
linked_spools: Vec<SpoolRef>Spools that already hold a remote link for this repository (same provider repository id or clone origin) AND that the caller can observe. Spools the caller cannot see are omitted — never revealed and never an error. Empty means no visible link. Repeated: one repository may be linked into several spools. Scope is the caller-visible spools of the account, not only the spools named in the ObserveIntegrations request.
default_branch: StringCurrent provider default branch, without refs/heads/. Empty means unknown, unavailable or no default; never guess main/master. Independent of refs.
refs: Vec<ProviderRef>Opt-in bounded page, ordered by full ref-name UTF-8 bytes. No secrets.
refs_status: Option<SectionStatus>Absent when unrequested. Section “provider_refs”; coverage plus PageInfo distinguishes an exhausted known-empty page from partial/unavailable data.
hash_algorithm: i32Independently discovered repository object format, including when refs or the selected commit are unavailable. Zero = unknown/unavailable; never infer SHA-1. Unknown blocks Prepare/signing; retry discovery. Every known OID and ProviderRef algorithm MUST agree with this repository format.
Implementations§
Source§impl ProviderRepository
impl ProviderRepository
Sourcepub fn hash_algorithm(&self) -> ImportGitHashAlgorithm
pub fn hash_algorithm(&self) -> ImportGitHashAlgorithm
Returns the enum value of hash_algorithm, or the default if the field is set to an invalid enum value.
Sourcepub fn set_hash_algorithm(&mut self, value: ImportGitHashAlgorithm)
pub fn set_hash_algorithm(&mut self, value: ImportGitHashAlgorithm)
Sets hash_algorithm to the provided enum value.
Trait Implementations§
Source§impl Clone for ProviderRepository
impl Clone for ProviderRepository
Source§impl Debug for ProviderRepository
impl Debug for ProviderRepository
Source§impl Default for ProviderRepository
impl Default for ProviderRepository
Source§impl Message for ProviderRepository
impl Message for ProviderRepository
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.