#[non_exhaustive]pub struct Repo {
pub name: String,
pub owner: String,
pub description: Option<String>,
pub url: String,
pub is_private: bool,
pub default_branch: String,
}Expand description
A repository (gh repo view --json name,owner,description,url,isPrivate,defaultBranchRef).
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 name.
owner: StringOwner login.
description: Option<String>Description, None when GitHub returns null.
url: StringWeb URL.
is_private: booltrue for a private repository.
default_branch: StringDefault branch name (empty for an empty repository).
Trait Implementations§
impl Eq for Repo
impl StructuralPartialEq for Repo
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnsafeUnpin for Repo
impl UnwindSafe for Repo
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