pub struct GitHub {
pub org: String,
pub name: String,
/* private fields */
}Expand description
A helper for handling GitHub operations.
Fields§
§org: String§name: StringImplementations§
source§impl GitHub
impl GitHub
sourcepub async fn releases(&self) -> Result<Vec<Release>>
pub async fn releases(&self) -> Result<Vec<Release>>
Fetch the latest releases of the GitHub repository.
sourcepub async fn get_commit_sha_from_release(
&self,
tag_name: &str,
) -> Result<String>
pub async fn get_commit_sha_from_release( &self, tag_name: &str, ) -> Result<String>
Retrieves the commit hash associated with a specified tag in a GitHub repository.
pub async fn get_repo_license(&self) -> Result<String>
pub fn name(repo: &Url) -> Result<&str>
Auto Trait Implementations§
impl Freeze for GitHub
impl RefUnwindSafe for GitHub
impl Send for GitHub
impl Sync for GitHub
impl Unpin for GitHub
impl UnwindSafe for GitHub
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