pub struct EnvironmentDef { /* private fields */ }Expand description
An unresolved per-environment declaration (one layer of configuration).
Fields are optional so layers can override individual values during
resolution. The same shape parses the environments.toml file.
Implementations§
Source§impl EnvironmentDef
impl EnvironmentDef
Sourcepub fn with_client_id(self, value: impl Into<String>) -> Self
pub fn with_client_id(self, value: impl Into<String>) -> Self
Sets the OAuth client id.
Sourcepub fn with_auth_url(self, value: impl Into<String>) -> Self
pub fn with_auth_url(self, value: impl Into<String>) -> Self
Sets the authorization endpoint.
Sourcepub fn with_token_url(self, value: impl Into<String>) -> Self
pub fn with_token_url(self, value: impl Into<String>) -> Self
Sets the token endpoint.
Sourcepub fn with_scopes(self, scopes: &[impl AsRef<str>]) -> Self
pub fn with_scopes(self, scopes: &[impl AsRef<str>]) -> Self
Sets the default scopes.
Trait Implementations§
Source§impl Clone for EnvironmentDef
impl Clone for EnvironmentDef
Source§fn clone(&self) -> EnvironmentDef
fn clone(&self) -> EnvironmentDef
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 EnvironmentDef
impl Debug for EnvironmentDef
Source§impl Default for EnvironmentDef
impl Default for EnvironmentDef
Source§fn default() -> EnvironmentDef
fn default() -> EnvironmentDef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnvironmentDef
impl<'de> Deserialize<'de> for EnvironmentDef
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
Auto Trait Implementations§
impl Freeze for EnvironmentDef
impl RefUnwindSafe for EnvironmentDef
impl Send for EnvironmentDef
impl Sync for EnvironmentDef
impl Unpin for EnvironmentDef
impl UnsafeUnpin for EnvironmentDef
impl UnwindSafe for EnvironmentDef
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