#[non_exhaustive]pub struct ForgeRepo {
pub name: String,
pub owner: String,
pub default_branch: String,
pub url: String,
pub private: bool,
}Expand description
A repository (GitHub) / project (GitLab), unified. (Gitea’s tea has no
current-repo view, so repo_view is
Unsupported there.)
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.name: StringRepository / project name.
owner: StringOwner / namespace (GitHub owner login; GitLab the namespace path).
default_branch: StringDefault branch name (empty for an empty repo).
url: StringWeb URL.
private: boolWhether the repository is private/non-public. Conservative when
unknown: if the backend doesn’t report visibility (e.g. GitLab omits the
field), this is false (public) rather than true — a consumer is never
told a repo is private without proof.
Trait Implementations§
impl Eq for ForgeRepo
impl StructuralPartialEq for ForgeRepo
Auto Trait Implementations§
impl Freeze for ForgeRepo
impl RefUnwindSafe for ForgeRepo
impl Send for ForgeRepo
impl Sync for ForgeRepo
impl Unpin for ForgeRepo
impl UnsafeUnpin for ForgeRepo
impl UnwindSafe for ForgeRepo
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