pub struct SkipperConfig {
pub spreadsheet_id: String,
pub credentials: Credentials,
pub sheet_name: Option<String>,
pub reference_sheets: Vec<String>,
pub test_id_column: String,
pub disabled_until_column: String,
}Expand description
Configuration shared by the resolver and the writer.
Fields§
§spreadsheet_id: String§credentials: Credentials§sheet_name: Option<String>Primary sheet; None means the first sheet of the spreadsheet.
reference_sheets: Vec<String>Extra read-only sheets merged into the primary (latest date wins).
test_id_column: String§disabled_until_column: StringImplementations§
Source§impl SkipperConfig
impl SkipperConfig
pub fn new( spreadsheet_id: impl Into<String>, credentials: Credentials, ) -> SkipperConfig
pub fn with_sheet_name(self, name: impl Into<String>) -> SkipperConfig
pub fn with_reference_sheets<I, S>(self, sheets: I) -> SkipperConfig
Sourcepub fn from_env() -> Option<SkipperConfig>
pub fn from_env() -> Option<SkipperConfig>
Build a config from the environment:
SKIPPER_SPREADSHEET_ID, credentials from SKIPPER_CREDENTIALS_FILE
(wins) or GOOGLE_CREDS_B64, optional SKIPPER_SHEET_NAME and
comma-separated SKIPPER_REFERENCE_SHEETS.
Returns None when Skipper is not configured.
Trait Implementations§
Source§impl Clone for SkipperConfig
impl Clone for SkipperConfig
Source§fn clone(&self) -> SkipperConfig
fn clone(&self) -> SkipperConfig
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 moreAuto Trait Implementations§
impl Forget for SkipperConfig
impl Freeze for SkipperConfig
impl Move for SkipperConfig
impl RefUnwindSafe for SkipperConfig
impl Send for SkipperConfig
impl Sync for SkipperConfig
impl Unpin for SkipperConfig
impl UnsafeUnpin for SkipperConfig
impl UnwindSafe for SkipperConfig
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