pub enum Namespace {
Properties(Properties),
Json(Json),
Yaml(Yaml),
Text(String),
}
Expand description
Represents different types of configuration data formats.
This enum provides a unified interface for working with various configuration formats, allowing the client to handle different data types transparently.
§Examples
ⓘ
use apollo_client::namespace::Namespace;
// Working with JSON data
let json_namespace = Namespace::Json(json_data);
// Working with Properties data
let props_namespace = Namespace::Properties(properties_data);
// Working with plain text
let text_namespace = Namespace::Text("configuration content".to_string());
Variants§
Properties(Properties)
Properties format - key-value pairs for application configuration
Json(Json)
JSON format - structured data with full object support
Yaml(Yaml)
YAML format - structured YAML data with full object support
Text(String)
XML format - planned support for XML configuration files Plain text format - raw string content
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
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