pub struct Environment {
pub PR_TRACKER_FETCHER_DATABASE_URL: String,
pub PR_TRACKER_FETCHER_GITHUB_TOKEN: String,
pub PR_TRACKER_FETCHER_GITHUB_REPO_OWNER: String,
pub PR_TRACKER_FETCHER_GITHUB_REPO_NAME: String,
pub PR_TRACKER_FETCHER_CACHE_DIR: Utf8PathBuf,
pub PR_TRACKER_FETCHER_BRANCH_PATTERNS: String,
}
Expand description
See documentation for each field.
Fields§
§PR_TRACKER_FETCHER_DATABASE_URL: String
§PR_TRACKER_FETCHER_GITHUB_TOKEN: String
GitHub API token with read access to the repository’s pull requests.
PR_TRACKER_FETCHER_GITHUB_REPO_OWNER: String
GitHub repository owner.
PR_TRACKER_FETCHER_GITHUB_REPO_NAME: String
GitHub repository name.
PR_TRACKER_FETCHER_CACHE_DIR: Utf8PathBuf
Cache directory (for repository clone).
PR_TRACKER_FETCHER_BRANCH_PATTERNS: String
JSON array of strings representing branch patterns to track.
?
matches a single occurrence of any character.*
matches zero or more occurrences of any character.
No escape characters.
Trait Implementations§
source§impl Config for Environment
impl Config for Environment
source§type Partial = PartialEnvironment
type Partial = PartialEnvironment
A version of
Self
that represents a potetially partial configuration. Read moresource§fn from_partial(partial: Self::Partial) -> Result<Self, Error>
fn from_partial(partial: Self::Partial) -> Result<Self, Error>
Tries to create
Self
from a potentially partial object and validates
itself. Read more§fn builder() -> Builder<Self>
fn builder() -> Builder<Self>
Convenience builder to configure, load and merge multiple configuration
sources. Sources specified earlier have a higher priority; later
sources only fill in the gaps. After all sources have been loaded, the
default values (usually specified with
#[default = ...]
) are merged
(with the lowest priority). Read moreAuto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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