pub struct QueryBuilder<'et> { /* private fields */ }Expand description
查询构建器
Implementations§
Source§impl<'et> QueryBuilder<'et>
impl<'et> QueryBuilder<'et>
Sourcepub fn include_unknown(self, yes: bool) -> Self
pub fn include_unknown(self, yes: bool) -> Self
包含未知标签
Sourcepub fn include_duplicates(self, yes: bool) -> Self
pub fn include_duplicates(self, yes: bool) -> Self
包含重复标签
Sourcepub fn raw_values(self, yes: bool) -> Self
pub fn raw_values(self, yes: bool) -> Self
显示原始数值(而非格式化后的值)
Sourcepub fn group_by_category(self, yes: bool) -> Self
pub fn group_by_category(self, yes: bool) -> Self
按类别分组(-g1 选项)
添加多个标签查询
Sourcepub fn exclude_id(self, tag: TagId) -> Self
pub fn exclude_id(self, tag: TagId) -> Self
排除特定标签(使用 TagId)
Sourcepub fn execute_json(self) -> Result<Value>
pub fn execute_json(self) -> Result<Value>
执行查询并返回 JSON
Sourcepub fn execute_as<T: DeserializeOwned>(self) -> Result<T>
pub fn execute_as<T: DeserializeOwned>(self) -> Result<T>
执行查询并反序列化为自定义类型
Auto Trait Implementations§
impl<'et> Freeze for QueryBuilder<'et>
impl<'et> RefUnwindSafe for QueryBuilder<'et>
impl<'et> Send for QueryBuilder<'et>
impl<'et> Sync for QueryBuilder<'et>
impl<'et> Unpin for QueryBuilder<'et>
impl<'et> UnsafeUnpin for QueryBuilder<'et>
impl<'et> UnwindSafe for QueryBuilder<'et>
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