pub struct LysConfig {
pub issuer: String,
pub database: String,
pub placement_credential_file: Option<PathBuf>,
}Expand description
The Lys a served database decides every request through. Nothing here grants anything: every right comes from a pass or a live answer.
Fields§
§issuer: StringThe issuer origin whose passes are trusted and whose live check deliberate routes ask.
database: StringThis database’s id as Lys registers it, a haematite.database.
placement_credential_file: Option<PathBuf>The absolute path of a file holding haematite’s Lys app credential,
lys-app.haematite.<secret>. Given, every collection and branch is
placed in Lys under this database, at start and after the write that
makes each one commits, so a grant on the database reaches it
(serve/placement.rs). Absent, nothing is placed, and a new collection
or branch is reached only by a grant on itself until someone places it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LysConfig
impl<'de> Deserialize<'de> for LysConfig
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 LysConfig
impl RefUnwindSafe for LysConfig
impl Send for LysConfig
impl Sync for LysConfig
impl Unpin for LysConfig
impl UnsafeUnpin for LysConfig
impl UnwindSafe for LysConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.