#[non_exhaustive]pub struct GithubConfig {
pub root: Option<String>,
pub token: Option<String>,
pub owner: String,
pub repo: String,
}Expand description
Config for GitHub services support.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.root: Option<String>root of this backend.
All operations will happen under this root.
token: Option<String>GitHub access_token.
optional. If not provided, the backend will only support read operations for public repositories. And rate limit will be limited to 60 requests per hour.
owner: StringGitHub repo owner.
required.
repo: StringGitHub repo name.
required.
Trait Implementations§
Source§impl Clone for GithubConfig
impl Clone for GithubConfig
Source§fn clone(&self) -> GithubConfig
fn clone(&self) -> GithubConfig
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 Configurator for GithubConfig
impl Configurator for GithubConfig
Source§type Builder = GithubBuilder
type Builder = GithubBuilder
Associated builder for this configuration.
Source§fn from_uri(uri: &OperatorUri) -> Result<Self>
fn from_uri(uri: &OperatorUri) -> Result<Self>
Build configuration from a parsed URI with merged options.
Source§fn into_builder(self) -> Self::Builder
fn into_builder(self) -> Self::Builder
Convert this configuration into a service builder.
Source§impl Debug for GithubConfig
impl Debug for GithubConfig
Source§impl Default for GithubConfig
impl Default for GithubConfig
Source§fn default() -> GithubConfig
fn default() -> GithubConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GithubConfigwhere
GithubConfig: Default,
impl<'de> Deserialize<'de> for GithubConfigwhere
GithubConfig: Default,
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 GithubConfig
Source§impl PartialEq for GithubConfig
impl PartialEq for GithubConfig
Source§impl Serialize for GithubConfig
impl Serialize for GithubConfig
impl StructuralPartialEq for GithubConfig
Auto Trait Implementations§
impl Freeze for GithubConfig
impl RefUnwindSafe for GithubConfig
impl Send for GithubConfig
impl Sync for GithubConfig
impl Unpin for GithubConfig
impl UnsafeUnpin for GithubConfig
impl UnwindSafe for GithubConfig
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