pub enum GitHubScope {
Repository {
owner: String,
repo: String,
},
Organization {
name: String,
},
Global,
}Expand description
Scope for GitHub API calls — determines the endpoint prefix.
Variants§
Repository
Single repository: /repos/{owner}/{repo}/...
Organization
Organization-level: search with org: qualifier
Global
Global: search across all accessible resources
Trait Implementations§
Source§impl Clone for GitHubScope
impl Clone for GitHubScope
Source§fn clone(&self) -> GitHubScope
fn clone(&self) -> GitHubScope
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 GitHubScope
impl Debug for GitHubScope
Source§impl<'de> Deserialize<'de> for GitHubScope
impl<'de> Deserialize<'de> for GitHubScope
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
Auto Trait Implementations§
impl Freeze for GitHubScope
impl RefUnwindSafe for GitHubScope
impl Send for GitHubScope
impl Sync for GitHubScope
impl Unpin for GitHubScope
impl UnsafeUnpin for GitHubScope
impl UnwindSafe for GitHubScope
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