pub enum SourceKind {
Url(UrlSourceConfig),
Function(FunctionSourceConfig),
Table(TableSourceConfig),
}Expand description
Origin kind for @source. Sealed enum — SourceConfig carries
exactly one of these.
Variants§
Url(UrlSourceConfig)
url: "https://api.example.com/{id}" — HTTP pull.
Function(FunctionSourceConfig)
function: "migrateV1ToV2" — Rust fn symbol called on miss.
Table(TableSourceConfig)
table: "OtherType" — continuous one-way sync from another
yeti table in the same database. table: resolves to a
GraphQL type name (not the storage @table(table:) name).
Trait Implementations§
Source§impl Clone for SourceKind
impl Clone for SourceKind
Source§fn clone(&self) -> SourceKind
fn clone(&self) -> SourceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SourceKind
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnsafeUnpin for SourceKind
impl UnwindSafe for SourceKind
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