Crate perspective_client
source ·Re-exports§
pub use crate::proto::ColumnType;pub use crate::proto::ExprValidationError;pub use crate::utils::*;
Modules§
- A collection of (de-)serializable structs which capture the application state, suitable for persistence, history, etc. features.
Macros§
- Assert that an implementation of domain language wrapper for
Tableimplements the expected API. As domain languages have different API needs, a trait isn’t useful for asserting that the entire API is implemented, because the signatures will not match exactly (unless every method is made heavily generic). Instead, this macro complains when a method name is missing. - A helper to for the pattern
let x2 = x;necessary to clone structs destined for anasyncor'staticclosure stack. This is likemove || { .. }ormove async { .. }, but for clone semantics.clone!()works with symbols as well as properties and methods, using the last symbol name in the method chain, or an alias viax = ...syntax.
Structs§
- Options which impact the behavior of
Client::table, as well as subsequent calls toTable::update, even though this latter method itself does not takeTableInitOptionsas an argument, since this parameter is fixed at creation.
Enums§
- The possible formats of input data which
Client::tableandTable::updatemay take as an argument. The latter method will not work withTableData::ViewandTableData::Schemavariants, and attempts to callTable::updatewith these variants will error.