pub struct ServiceSettings {
pub bind: String,
pub database_url: Sensitive<String>,
pub asset_store: String,
}Expand description
Service settings: everything the platform side needs before a single
document moves. Secrets live in Sensitive so a
stray {:?} cannot leak them. Deliberately not Clone and not
Serialize: Sensitive’s serializer is opt-in for a reason — a settings
struct that can be serialized is one debug endpoint away from leaking its
DSN.
Fields§
§bind: StringBind address for the HTTP service.
database_url: Sensitive<String>Postgres DSN for the outbox and trail continuation.
asset_store: StringBlob store root (S3 URL or a filesystem path).
Implementations§
Trait Implementations§
Source§impl Debug for ServiceSettings
impl Debug for ServiceSettings
Source§impl<'de> Deserialize<'de> for ServiceSettings
impl<'de> Deserialize<'de> for ServiceSettings
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 ServiceSettings
impl RefUnwindSafe for ServiceSettings
impl Send for ServiceSettings
impl Sync for ServiceSettings
impl Unpin for ServiceSettings
impl UnsafeUnpin for ServiceSettings
impl UnwindSafe for ServiceSettings
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