pub enum WorkerConfiguration {
String(String),
Object(HashMap<String, Value>),
}Variants§
String(String)
Raw JSON string of the worker’s specific configuration.
Object(HashMap<String, Value>)
Parsed JSON object of the worker’s specific configuration (typically for admin views).
Trait Implementations§
Source§impl Clone for WorkerConfiguration
impl Clone for WorkerConfiguration
Source§fn clone(&self) -> WorkerConfiguration
fn clone(&self) -> WorkerConfiguration
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 WorkerConfiguration
impl Debug for WorkerConfiguration
Source§impl Default for WorkerConfiguration
impl Default for WorkerConfiguration
Source§impl<'de> Deserialize<'de> for WorkerConfiguration
impl<'de> Deserialize<'de> for WorkerConfiguration
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 PartialEq for WorkerConfiguration
impl PartialEq for WorkerConfiguration
Source§impl Serialize for WorkerConfiguration
impl Serialize for WorkerConfiguration
impl StructuralPartialEq for WorkerConfiguration
Auto Trait Implementations§
impl Freeze for WorkerConfiguration
impl RefUnwindSafe for WorkerConfiguration
impl Send for WorkerConfiguration
impl Sync for WorkerConfiguration
impl Unpin for WorkerConfiguration
impl UnwindSafe for WorkerConfiguration
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