pub enum AuthSpec<A> {
Inline(A),
Reference(AuthReference),
}Expand description
A connector’s auth: field: either an inline auth definition A
(the { type, config } shape), or a { ref: <name> } reference to a
shared provider defined in the top-level auth: catalog.
ref is mutually exclusive with inline fields — supplying both is a
deserialization error.
Variants§
Inline(A)
Inline auth, spelled out on the connector.
Reference(AuthReference)
A reference to a shared provider in the top-level auth: catalog.
Implementations§
Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for AuthSpec<A>where
A: DeserializeOwned,
impl<'de, A> Deserialize<'de> for AuthSpec<A>where
A: DeserializeOwned,
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
Source§impl<A> JsonSchema for AuthSpec<A>where
A: JsonSchema,
impl<A> JsonSchema for AuthSpec<A>where
A: JsonSchema,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl<A> Freeze for AuthSpec<A>where
A: Freeze,
impl<A> RefUnwindSafe for AuthSpec<A>where
A: RefUnwindSafe,
impl<A> Send for AuthSpec<A>where
A: Send,
impl<A> Sync for AuthSpec<A>where
A: Sync,
impl<A> Unpin for AuthSpec<A>where
A: Unpin,
impl<A> UnsafeUnpin for AuthSpec<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for AuthSpec<A>where
A: UnwindSafe,
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