#[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 Freeze for RepoState
impl RefUnwindSafe for RepoState
impl Send for RepoState
impl Sync for RepoState
impl Unpin for RepoState
impl UnsafeUnpin for RepoState
impl UnwindSafe for RepoState
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