pub struct GithubRepo { /* private fields */ }Expand description
GitHub repository details for a Source.
Implementations§
Source§impl GithubRepo
impl GithubRepo
Sourcepub fn new(owner: impl Into<String>, repo: impl Into<String>) -> Self
pub fn new(owner: impl Into<String>, repo: impl Into<String>) -> Self
Creates a new GithubRepo for the given owner/repo.
Sourcepub fn with_is_private(self, is_private: bool) -> Self
pub fn with_is_private(self, is_private: bool) -> Self
Sets whether the repository is private.
Sourcepub fn with_default_branch(self, default_branch: Branch) -> Self
pub fn with_default_branch(self, default_branch: Branch) -> Self
Sets the repository’s default branch.
Sourcepub fn with_branches(self, branches: Vec<Branch>) -> Self
pub fn with_branches(self, branches: Vec<Branch>) -> Self
Sets the repository’s known branches.
Sourcepub fn is_private(&self) -> Option<bool>
pub fn is_private(&self) -> Option<bool>
Returns whether the repository is private, if known.
Sourcepub fn default_branch(&self) -> Option<&Branch>
pub fn default_branch(&self) -> Option<&Branch>
Returns the repository’s default branch, if known.
Trait Implementations§
Source§impl Clone for GithubRepo
impl Clone for GithubRepo
Source§fn clone(&self) -> GithubRepo
fn clone(&self) -> GithubRepo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GithubRepo
impl Debug for GithubRepo
Source§impl Default for GithubRepo
impl Default for GithubRepo
Source§fn default() -> GithubRepo
fn default() -> GithubRepo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GithubRepo
impl<'de> Deserialize<'de> for GithubRepo
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 GithubRepo
Source§impl PartialEq for GithubRepo
impl PartialEq for GithubRepo
Source§impl Serialize for GithubRepo
impl Serialize for GithubRepo
impl StructuralPartialEq for GithubRepo
Auto Trait Implementations§
impl Freeze for GithubRepo
impl RefUnwindSafe for GithubRepo
impl Send for GithubRepo
impl Sync for GithubRepo
impl Unpin for GithubRepo
impl UnsafeUnpin for GithubRepo
impl UnwindSafe for GithubRepo
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