pub enum JsonOverrides {
Location(AssetLocation),
Json(Value),
}
Expand description
Represents a set of JSON overrides for a configuration.
The overrides can be provided as an inline JSON object or loaded from a separate file via a path or URL.
Variants§
Location(AssetLocation)
A path or URL pointing to a JSON file containing the overrides.
Json(Value)
An inline JSON value representing the overrides.
Implementations§
Trait Implementations§
Source§impl Clone for JsonOverrides
impl Clone for JsonOverrides
Source§fn clone(&self) -> JsonOverrides
fn clone(&self) -> JsonOverrides
Returns a duplicate of the value. Read more
1.0.0 · 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 JsonOverrides
impl Debug for JsonOverrides
Source§impl<'de> Deserialize<'de> for JsonOverrides
impl<'de> Deserialize<'de> for JsonOverrides
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
Source§impl Display for JsonOverrides
impl Display for JsonOverrides
Source§impl From<&str> for JsonOverrides
impl From<&str> for JsonOverrides
Source§impl From<AssetLocation> for JsonOverrides
impl From<AssetLocation> for JsonOverrides
Source§fn from(value: AssetLocation) -> Self
fn from(value: AssetLocation) -> Self
Converts to this type from the input type.
Source§impl From<Value> for JsonOverrides
impl From<Value> for JsonOverrides
Source§impl PartialEq for JsonOverrides
impl PartialEq for JsonOverrides
Source§impl Serialize for JsonOverrides
impl Serialize for JsonOverrides
impl StructuralPartialEq for JsonOverrides
Auto Trait Implementations§
impl Freeze for JsonOverrides
impl RefUnwindSafe for JsonOverrides
impl Send for JsonOverrides
impl Sync for JsonOverrides
impl Unpin for JsonOverrides
impl UnwindSafe for JsonOverrides
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