pub struct Integration {
pub provider: String,
pub fields: BTreeMap<String, Value>,
}Fields§
§provider: StringCatalog adapter (e.g. clerk → clerk/auth).
fields: BTreeMap<String, Value>Provider config and optional per-host override tables
([integrations.<name>.<host>]), allowed only for host-bound
providers that declare per-host config in the integrations registry.
Implementations§
Source§impl Integration
impl Integration
Sourcepub fn config_fields(
&self,
known_substrates: &[&str],
) -> BTreeMap<String, Value>
pub fn config_fields( &self, known_substrates: &[&str], ) -> BTreeMap<String, Value>
Config keys excluding registered host override tables. known_substrates
names the keys that count as host overrides (substrate names), so they are
stripped from the provider’s own config.
pub fn host_block(&self, host: &str) -> Option<&Table>
Trait Implementations§
Source§impl Debug for Integration
impl Debug for Integration
Source§impl<'de> Deserialize<'de> for Integration
impl<'de> Deserialize<'de> for Integration
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 Integration
impl RefUnwindSafe for Integration
impl Send for Integration
impl Sync for Integration
impl Unpin for Integration
impl UnsafeUnpin for Integration
impl UnwindSafe for Integration
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