pub struct AuthorityQuery {
pub name: String,
pub sql: String,
pub bind: Vec<String>,
pub params: Vec<AuthorityParam>,
pub coverage: Vec<AuthorityCoverage>,
pub reads: BTreeMap<String, Vec<String>>,
pub result_columns: Vec<AuthorityResultColumn>,
}Expand description
§5.11 one generated authority query declaration (SYQL.md §13.3). It holds data only and (de)serializes as the declaration JSON every host passes.
Fields§
§name: String§sql: StringPositional SQL with ? placeholders, as authored.
bind: Vec<String>The parameter name of each ?, in order.
params: Vec<AuthorityParam>§coverage: Vec<AuthorityCoverage>§reads: BTreeMap<String, Vec<String>>Table to sorted, deduplicated columns the statement reads.
result_columns: Vec<AuthorityResultColumn>Trait Implementations§
Source§impl Clone for AuthorityQuery
impl Clone for AuthorityQuery
Source§impl Debug for AuthorityQuery
impl Debug for AuthorityQuery
Source§impl<'de> Deserialize<'de> for AuthorityQuery
impl<'de> Deserialize<'de> for AuthorityQuery
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 Eq for AuthorityQuery
Source§impl PartialEq for AuthorityQuery
impl PartialEq for AuthorityQuery
Source§impl Serialize for AuthorityQuery
impl Serialize for AuthorityQuery
impl StructuralPartialEq for AuthorityQuery
Auto Trait Implementations§
impl Forget for AuthorityQuery
impl Freeze for AuthorityQuery
impl Move for AuthorityQuery
impl RefUnwindSafe for AuthorityQuery
impl Send for AuthorityQuery
impl Sync for AuthorityQuery
impl Unpin for AuthorityQuery
impl UnsafeUnpin for AuthorityQuery
impl UnwindSafe for AuthorityQuery
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