pub struct SurrealConfig {
pub endpoint: String,
pub username: String,
pub password: String,
pub namespace: String,
pub database: String,
pub zero_temporal: ZeroTemporalPolicy,
pub batch_size: usize,
pub dry_run: bool,
}Expand description
Plain-field SurrealDB connection and write options (no clap).
Use this from embedders and SinkConnect helpers.
The stock CLI continues to parse argv into clap-derived structs and maps
them into this type (or sink-crate connect helpers) at the boundary.
Fields§
§endpoint: StringSurrealDB endpoint URL (http://… or ws://…).
username: StringUsername for SurrealDB sign-in.
password: StringPassword for SurrealDB sign-in.
namespace: StringTarget namespace.
database: StringTarget database.
zero_temporal: ZeroTemporalPolicyHow zero temporal values are written.
batch_size: usizeBatch size hint for full-sync writers (sources that honor it).
dry_run: boolWhen true, sources should not write to the sink.
Implementations§
Trait Implementations§
Source§impl Clone for SurrealConfig
impl Clone for SurrealConfig
Source§fn clone(&self) -> SurrealConfig
fn clone(&self) -> SurrealConfig
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 moreSource§impl Debug for SurrealConfig
impl Debug for SurrealConfig
Source§impl Default for SurrealConfig
impl Default for SurrealConfig
Source§fn default() -> SurrealConfig
fn default() -> SurrealConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SurrealConfig
impl RefUnwindSafe for SurrealConfig
impl Send for SurrealConfig
impl Sync for SurrealConfig
impl Unpin for SurrealConfig
impl UnsafeUnpin for SurrealConfig
impl UnwindSafe for SurrealConfig
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