pub struct ProviderRepository {Show 13 fields
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,
pub size_estimate_state: i32,
pub git_size_kib: u64,
}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.
size_estimate_state: i32Hosts MAY use connected GitHub API size in KiB (1024 bytes). UNKNOWN with git_size_kib=0 is always permitted, including connected GitHub. AVAILABLE may be zero for an empty repository. Unknown enum values refuse.
git_size_kib: u64Clients calculate estimate × headroom, capped by GetImportConfiguration limits; UNKNOWN uses the host maximum. Users never set the total. Advisory only: Prepare requires the exact client-selected total.
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.
Sourcepub fn size_estimate_state(&self) -> ProviderRepositorySizeEstimateState
pub fn size_estimate_state(&self) -> ProviderRepositorySizeEstimateState
Returns the enum value of size_estimate_state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_size_estimate_state(
&mut self,
value: ProviderRepositorySizeEstimateState,
)
pub fn set_size_estimate_state( &mut self, value: ProviderRepositorySizeEstimateState, )
Sets size_estimate_state to the provided enum value.
Trait Implementations§
Source§impl Clone for ProviderRepository
impl Clone for ProviderRepository
Source§fn clone(&self) -> ProviderRepository
fn clone(&self) -> ProviderRepository
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderRepository
impl Debug for ProviderRepository
Source§impl Default for ProviderRepository
impl Default for ProviderRepository
Source§fn default() -> ProviderRepository
fn default() -> 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.Source§impl PartialEq for ProviderRepository
impl PartialEq for ProviderRepository
impl StructuralPartialEq for ProviderRepository
Auto Trait Implementations§
impl Freeze for ProviderRepository
impl RefUnwindSafe for ProviderRepository
impl Send for ProviderRepository
impl Sync for ProviderRepository
impl Unpin for ProviderRepository
impl UnsafeUnpin for ProviderRepository
impl UnwindSafe for ProviderRepository
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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