pub struct PresentedSystemConfig {Show 13 fields
pub id: i64,
pub key: String,
pub value: ConfigValue,
pub value_type: ConfigValueType,
pub requires_restart: bool,
pub is_sensitive: bool,
pub source: ConfigSource,
pub visibility: ConfigVisibility,
pub namespace: String,
pub category: String,
pub description: String,
pub updated_at: DateTimeUtc,
pub updated_by: Option<i64>,
}Expand description
API-facing representation of a stored system configuration row.
This keeps the product-neutral field mapping, sensitive-value redaction, and lossy historical value parsing in Forge while leaving product API envelopes, permissions, warning calculation, and OpenAPI schema ownership in each service.
Fields§
§id: i64Stable row id.
key: StringStable configuration key.
value: ConfigValueAPI-facing value with sensitive rows redacted.
value_type: ConfigValueTypeStorage value type.
requires_restart: boolWhether changes require process restart to take effect.
is_sensitive: boolWhether APIs and audit logs should redact this value.
source: ConfigSourceSystem-defined or custom user-defined source.
visibility: ConfigVisibilityConsumer visibility.
namespace: StringOptional product namespace.
category: StringProduct category for UI grouping.
description: StringProduct description for admin UIs.
updated_at: DateTimeUtcLast update timestamp.
updated_by: Option<i64>Optional actor user id.
Implementations§
Source§impl PresentedSystemConfig
impl PresentedSystemConfig
Sourcepub fn from_model(
model: Model,
on_invalid: impl FnOnce(&ConfigCoreError),
) -> Self
pub fn from_model( model: Model, on_invalid: impl FnOnce(&ConfigCoreError), ) -> Self
Converts a stored model into an API-facing row.
Trait Implementations§
Source§impl Clone for PresentedSystemConfig
impl Clone for PresentedSystemConfig
Source§fn clone(&self) -> PresentedSystemConfig
fn clone(&self) -> PresentedSystemConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PresentedSystemConfig
impl Debug for PresentedSystemConfig
Source§impl PartialEq for PresentedSystemConfig
impl PartialEq for PresentedSystemConfig
Source§fn eq(&self, other: &PresentedSystemConfig) -> bool
fn eq(&self, other: &PresentedSystemConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresentedSystemConfig
Auto Trait Implementations§
impl Freeze for PresentedSystemConfig
impl RefUnwindSafe for PresentedSystemConfig
impl Send for PresentedSystemConfig
impl Sync for PresentedSystemConfig
impl Unpin for PresentedSystemConfig
impl UnsafeUnpin for PresentedSystemConfig
impl UnwindSafe for PresentedSystemConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more