Enum pliantdb_core::networking::ServerResponse [−][src]
pub enum ServerResponse {
DatabaseCreated {
name: String,
},
DatabaseDeleted {
name: String,
},
Databases(Vec<Database>),
AvailableSchemas(Vec<SchemaName>),
}Expand description
A response to a ServerRequest.
Variants
A database with name was successfully created.
Show fields
Fields of DatabaseCreated
name: StringThe name of the database to create.
A database with name was successfully removed.
Show fields
Fields of DatabaseDeleted
name: StringThe name of the database to remove.
A list of available databases.
AvailableSchemas(Vec<SchemaName>)A list of availble schemas.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for ServerResponseimpl Send for ServerResponseimpl Sync for ServerResponseimpl Unpin for ServerResponseimpl UnwindSafe for ServerResponseBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self