#[non_exhaustive]pub struct RepoState {
pub resource: Resource,
pub forge_id: u64,
pub visibility: Visibility,
pub archived: bool,
pub default_branch: Option<String>,
pub collaborators: Vec<Collaborator>,
pub protection: ProtectionState,
}Expand description
A repository as observed on the forge.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resource: ResourceWhere it is now (after any rename or transfer).
forge_id: u64The forge’s numeric repo id — rights are keyed on this (§9).
visibility: VisibilityVisibility.
archived: boolArchived (read-only).
default_branch: Option<String>The default branch, if the repository has any commits.
collaborators: Vec<Collaborator>Direct collaborators and pending invitations.
protection: ProtectionStateThe managed default-branch protection.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RepoState
impl<'de> Deserialize<'de> for RepoState
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
impl Eq for RepoState
impl StructuralPartialEq for RepoState
Auto Trait Implementations§
impl Forget for RepoState
impl Freeze for RepoStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Collaborator>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ProtectionGap>: Freeze,
PhantomData<ForgeAccount>: Freeze,
PhantomData<MergeMethod>: Freeze,
impl Move for RepoState
impl RefUnwindSafe for RepoState
impl Send for RepoStatewhere
RawVecInner: Send,
impl Sync for RepoStatewhere
RawVecInner: Sync,
impl Unpin for RepoState
impl UnsafeUnpin for RepoStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Collaborator>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ProtectionGap>: UnsafeUnpin,
PhantomData<ForgeAccount>: UnsafeUnpin,
PhantomData<MergeMethod>: UnsafeUnpin,
impl UnwindSafe for RepoStatewhere
RawVecInner: UnwindSafe,
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