pub struct RqliteQuery {
pub query: String,
pub args: Vec<RqliteArgument>,
pub op: Operation,
}
Expand description
A query to be executed on the rqlite cluster.
Fields§
§query: String
§args: Vec<RqliteArgument>
§op: Operation
Trait Implementations§
Source§impl Debug for RqliteQuery
impl Debug for RqliteQuery
Source§impl TryInto<RqliteQuery> for &str
impl TryInto<RqliteQuery> for &str
Source§fn try_into(self) -> Result<RqliteQuery, Self::Error>
fn try_into(self) -> Result<RqliteQuery, Self::Error>
Attempts to convert a string into a RqliteQuery
.
Returns a Result
with the query if the string is valid.
Fails if the query does not start with a valid operation.
See Operation
for a list of valid operations.
Source§type Error = QueryBuilderError
type Error = QueryBuilderError
The type returned in the event of a conversion error.
Source§impl TryInto<RqliteQuery> for Result<RqliteQuery, QueryBuilderError>
impl TryInto<RqliteQuery> for Result<RqliteQuery, QueryBuilderError>
Source§fn try_into(self) -> Result<RqliteQuery, Self::Error>
fn try_into(self) -> Result<RqliteQuery, Self::Error>
Attempts to convert a Result
into a RqliteQuery
.
Returns a Result
with the query if the result is valid.
Fails if the result is an error.
This allows avoiding the use of ?
in the query!
macro.
Source§type Error = QueryBuilderError
type Error = QueryBuilderError
The type returned in the event of a conversion error.
Source§impl TryInto<RqliteQuery> for String
impl TryInto<RqliteQuery> for String
Source§fn try_into(self) -> Result<RqliteQuery, Self::Error>
fn try_into(self) -> Result<RqliteQuery, Self::Error>
Attempts to convert a string into a RqliteQuery
.
Returns a Result
with the query if the string is valid.
Fails if the query does not start with a valid operation.
See Operation
for a list of valid operations.
Source§type Error = QueryBuilderError
type Error = QueryBuilderError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RqliteQuery
impl RefUnwindSafe for RqliteQuery
impl Send for RqliteQuery
impl Sync for RqliteQuery
impl Unpin for RqliteQuery
impl UnwindSafe for RqliteQuery
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