pub enum Response {
Hello {
protocol_version: u32,
kind: Kind,
name: String,
version: String,
capabilities: Vec<String>,
provides: Vec<PluginId>,
},
VersionMismatch {
min_version: u32,
max_version: u32,
},
Describe {
connection_fields: Vec<ConnectionField>,
option_fields: Vec<OptionField>,
identifier_quote: Option<String>,
message_limit: Option<u64>,
},
Validated {
errors: Vec<String>,
},
Ok {},
Result {
columns: Vec<String>,
},
ResultEnd {
rows: u64,
},
NoResult {
rows_affected: Option<u64>,
},
Written {
files: Vec<String>,
warnings: Vec<String>,
},
Delivered {
location: String,
},
Loaded {
relation: String,
rows: u64,
warning: Option<String>,
},
Error {
message: String,
},
}Expand description
Plugin → core.
Variants§
Hello
Fields
VersionMismatch
Describe
Fields
§
connection_fields: Vec<ConnectionField>§
option_fields: Vec<OptionField>Validated
Every problem with the options, each a sentence naming the key; empty when they’re fine.
Ok
Result
A result set follows as Arrow frames, ended by result_end.
ResultEnd
NoResult
Written
Fields
Delivered
Loaded
relation is what SQL uses to read the loaded rows. warning, when set, is shown to the
user (e.g. the database has no bulk path, so a load this size is slow).
Error
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
Blanket Implementations§
impl<T> Allocation for T
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