pub trait Querio {
type QuerioVariable: Strung + IntupleStruct;
const QUERY: &'static str;
// Provided methods
fn querio(hard: &Self::QuerioVariable) -> String { ... }
fn qrio(
hard: <<Self as Querio>::QuerioVariable as IntupleStruct>::Intuple,
) -> String { ... }
}Expand description
Marks a struct as query
Required Associated Constants§
Required Associated Types§
Sourcetype QuerioVariable: Strung + IntupleStruct
type QuerioVariable: Strung + IntupleStruct
Specify varaibles using a struct with the Strung-Trait
Provided Methods§
Sourcefn querio(hard: &Self::QuerioVariable) -> String
fn querio(hard: &Self::QuerioVariable) -> String
Merges the query string and the in- and output together to the final query and returns it. NOTE: Needed 3 inputs for a project I originally made this crate for, might change to 2 at some point
Sourcefn qrio(
hard: <<Self as Querio>::QuerioVariable as IntupleStruct>::Intuple,
) -> String
fn qrio( hard: <<Self as Querio>::QuerioVariable as IntupleStruct>::Intuple, ) -> String
Shorter form of querio, using tuple as params
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.