#[non_exhaustive]pub struct RepoView {
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 RepoView
impl StructuralPartialEq for RepoView
Auto Trait Implementations§
impl Freeze for RepoView
impl RefUnwindSafe for RepoView
impl Send for RepoView
impl Sync for RepoView
impl Unpin for RepoView
impl UnsafeUnpin for RepoView
impl UnwindSafe for RepoView
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