pub struct GitHub(/* private fields */);
Expand description
Asynchronous GitHub API bindings that wraps octorust::Client
internally.
§Examples
use gfas_api::GitHub;
let github = GitHub::new(String::from("<TOKEN>"))?;
Implementations§
Methods from Deref<Target = Client>§
Sourcepub fn with_host_override<H>(&mut self, host: H) -> &mut Clientwhere
H: ToString,
pub fn with_host_override<H>(&mut self, host: H) -> &mut Clientwhere
H: ToString,
Override the host for all endpoins in the client.
Sourcepub fn remove_host_override(&mut self) -> &mut Client
pub fn remove_host_override(&mut self) -> &mut Client
Disables the global host override for the client.
pub fn get_host_override(&self) -> Option<&str>
pub fn set_credentials<CR>(&mut self, credentials: CR)
Sourcepub fn activity(&self) -> Activity
pub fn activity(&self) -> Activity
Activity APIs provide access to notifications, subscriptions, and timelines.
Sourcepub fn code_scanning(&self) -> CodeScanning
pub fn code_scanning(&self) -> CodeScanning
Retrieve code scanning alerts from a repository.
Sourcepub fn codes_of_conduct(&self) -> CodesOfConduct
pub fn codes_of_conduct(&self) -> CodesOfConduct
Insight into codes of conduct for your communities.
Sourcepub fn enterprise_admin(&self) -> EnterpriseAdmin
pub fn enterprise_admin(&self) -> EnterpriseAdmin
Administer a GitHub enterprise.
Sourcepub fn interactions(&self) -> Interactions
pub fn interactions(&self) -> Interactions
Owner or admin management of users interactions.
Sourcepub fn migrations(&self) -> Migrations
pub fn migrations(&self) -> Migrations
Move projects to or from GitHub.
Manage access of OAuth applications.
Sourcepub fn rate_limit(&self) -> RateLimit
pub fn rate_limit(&self) -> RateLimit
Check your current rate limit status.
Sourcepub fn scim(&self) -> Scim
pub fn scim(&self) -> Scim
Provisioning of GitHub organization membership for SCIM-enabled providers.
Sourcepub fn secret_scanning(&self) -> SecretScanning
pub fn secret_scanning(&self) -> SecretScanning
Retrieve secret scanning alerts from a repository.
Trait Implementations§
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