pub enum EnvFilesConfig {
List(Vec<String>),
TokenFiles(EnvFilesTokenConfig),
}Expand description
Environment file configuration.
Accepts two forms:
- List form (anodizer extension): array of
.envfile paths loaded as KEY=VALUE.env_files: - .env - .release.env - Struct form: paths to files containing provider tokens.
env_files: github_token: ~/.config/goreleaser/github_token gitlab_token: ~/.config/goreleaser/gitlab_token gitea_token: ~/.config/goreleaser/gitea_token
Variants§
List(Vec<String>)
List of .env file paths to load (KEY=VALUE format).
TokenFiles(EnvFilesTokenConfig)
Structured token file paths.
Implementations§
Source§impl EnvFilesConfig
impl EnvFilesConfig
Sourcepub fn as_list(&self) -> Option<&[String]>
pub fn as_list(&self) -> Option<&[String]>
Returns the list of .env file paths if this is the List variant.
Sourcepub fn as_token_files(&self) -> Option<&EnvFilesTokenConfig>
pub fn as_token_files(&self) -> Option<&EnvFilesTokenConfig>
Returns the token files config if this is the TokenFiles variant.
Trait Implementations§
Source§impl Clone for EnvFilesConfig
impl Clone for EnvFilesConfig
Source§fn clone(&self) -> EnvFilesConfig
fn clone(&self) -> EnvFilesConfig
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 EnvFilesConfig
impl Debug for EnvFilesConfig
Source§impl<'de> Deserialize<'de> for EnvFilesConfig
impl<'de> Deserialize<'de> for EnvFilesConfig
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for EnvFilesConfig
impl JsonSchema for EnvFilesConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for EnvFilesConfig
impl RefUnwindSafe for EnvFilesConfig
impl Send for EnvFilesConfig
impl Sync for EnvFilesConfig
impl Unpin for EnvFilesConfig
impl UnsafeUnpin for EnvFilesConfig
impl UnwindSafe for EnvFilesConfig
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