pub struct GitHubProjectsConfig {
pub owner: String,
pub project_number: u32,
pub token_env: String,
pub endpoint: String,
pub status_mapping: BTreeMap<String, StatusCategory>,
}Expand description
Configuration for one GitHub Projects v2 project.
Fields§
§owner: StringLogin of the user or organization which owns the project.
project_number: u32The project number shown in its GitHub URL.
token_env: StringEnvironment variable containing a GitHub token with project read access.
endpoint: StringGraphQL endpoint. GitHub Enterprise installations may override it.
status_mapping: BTreeMap<String, StatusCategory>Case-insensitive project status name to normalized category mapping.
Trait Implementations§
Source§impl Clone for GitHubProjectsConfig
impl Clone for GitHubProjectsConfig
Source§fn clone(&self) -> GitHubProjectsConfig
fn clone(&self) -> GitHubProjectsConfig
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 GitHubProjectsConfig
impl Debug for GitHubProjectsConfig
Source§impl Default for GitHubProjectsConfig
impl Default for GitHubProjectsConfig
Source§fn default() -> GitHubProjectsConfig
fn default() -> GitHubProjectsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GitHubProjectsConfigwhere
GitHubProjectsConfig: Default,
impl<'de> Deserialize<'de> for GitHubProjectsConfigwhere
GitHubProjectsConfig: 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
Source§impl JsonSchema for GitHubProjectsConfig
impl JsonSchema for GitHubProjectsConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for GitHubProjectsConfig
impl RefUnwindSafe for GitHubProjectsConfig
impl Send for GitHubProjectsConfig
impl Sync for GitHubProjectsConfig
impl Unpin for GitHubProjectsConfig
impl UnsafeUnpin for GitHubProjectsConfig
impl UnwindSafe for GitHubProjectsConfig
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