#[non_exhaustive]pub enum ConfigLayer {
Default,
User,
Workspace,
Project,
Unknown(String),
}Expand description
Snapshot layer identity. An unknown layer must not be merged or delivered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
User
Workspace
Project
Unknown(String)
A future spelling, retained for diagnostics but never authority.
Implementations§
Source§impl ConfigLayer
impl ConfigLayer
pub fn known_layer(&self) -> Option<Layer>
Trait Implementations§
Source§impl Clone for ConfigLayer
impl Clone for ConfigLayer
Source§impl Debug for ConfigLayer
impl Debug for ConfigLayer
Source§impl<'de> Deserialize<'de> for ConfigLayer
impl<'de> Deserialize<'de> for ConfigLayer
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
impl Eq for ConfigLayer
Source§impl From<ConfigLayer> for String
impl From<ConfigLayer> for String
Source§fn from(value: ConfigLayer) -> Self
fn from(value: ConfigLayer) -> Self
Converts to this type from the input type.
Source§impl From<String> for ConfigLayer
impl From<String> for ConfigLayer
Source§impl PartialEq for ConfigLayer
impl PartialEq for ConfigLayer
Source§impl Serialize for ConfigLayer
impl Serialize for ConfigLayer
impl StructuralPartialEq for ConfigLayer
Auto Trait Implementations§
impl Forget for ConfigLayer
impl Freeze for ConfigLayer
impl Move for ConfigLayer
impl RefUnwindSafe for ConfigLayer
impl Send for ConfigLayer
impl Sync for ConfigLayer
impl Unpin for ConfigLayer
impl UnsafeUnpin for ConfigLayer
impl UnwindSafe for ConfigLayer
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