pub struct ServicesConfig {
pub profile: String,
}Expand description
Service construction profile selection (D2).
The profile value is carried as a raw string here rather than a typed enum so
an unrecognised value is a config validation error with a helpful message
(via Self::profile) rather than an opaque deserialization failure — matching
how every other semantic config check surfaces. Absent profile defaults to
"full".
Fields§
§profile: StringConstruction profile: "full" (the default, unchanged behaviour) or
"worker-front-door" (capability-scoped worker deployments).
Implementations§
Source§impl ServicesConfig
impl ServicesConfig
Sourcepub fn profile(&self) -> Result<ServiceProfile, ServerError>
pub fn profile(&self) -> Result<ServiceProfile, ServerError>
Resolves the raw profile string into a typed ServiceProfile.
§Errors
Returns ServerError::ConfigValidation when the value is not a recognised
profile.
Trait Implementations§
Source§impl Clone for ServicesConfig
impl Clone for ServicesConfig
Source§fn clone(&self) -> ServicesConfig
fn clone(&self) -> ServicesConfig
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 ServicesConfig
impl Debug for ServicesConfig
Source§impl Default for ServicesConfig
impl Default for ServicesConfig
Source§impl<'de> Deserialize<'de> for ServicesConfig
impl<'de> Deserialize<'de> for ServicesConfig
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 ServicesConfig
impl RefUnwindSafe for ServicesConfig
impl Send for ServicesConfig
impl Sync for ServicesConfig
impl Unpin for ServicesConfig
impl UnsafeUnpin for ServicesConfig
impl UnwindSafe for ServicesConfig
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