pub struct Backend {
pub name: String,
pub kind: String,
pub config: Table,
}Expand description
One named backend in the registry. config is kind-specific — for
kind == "self-hosted" it deserializes into SelfHostedConfig.
Fields§
§name: String§kind: String"self-hosted" today; other kinds arrive with future backends.
config: TableImplementations§
Source§impl Backend
impl Backend
Sourcepub fn self_hosted(name: &str, cfg: &SelfHostedConfig) -> Result<Backend>
pub fn self_hosted(name: &str, cfg: &SelfHostedConfig) -> Result<Backend>
Build a self-hosted backend named name from a SelfHostedConfig.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Backend
impl<'de> Deserialize<'de> for Backend
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 Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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