pub struct GithubClient { /* private fields */ }Implementations§
Source§impl GithubClient
impl GithubClient
pub fn new(repo: String, api_token: Option<String>) -> Self
pub fn get_file_info( &self, path: &str, reftag: &str, ) -> Result<GithubFile, Box<dyn Error>>
pub fn get_file_raw( &self, path: &str, reftag: &str, ) -> Result<String, Box<dyn Error>>
pub fn list_files(&self, reftag: &str) -> Result<Vec<String>, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for GithubClient
impl Clone for GithubClient
Source§fn clone(&self) -> GithubClient
fn clone(&self) -> GithubClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for GithubClient
impl !UnwindSafe for GithubClient
impl Freeze for GithubClient
impl Send for GithubClient
impl Sync for GithubClient
impl Unpin for GithubClient
impl UnsafeUnpin for GithubClient
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