args: add search column argument

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-02-22 19:46:23 -08:00
parent e09df3e7c3
commit f7c1a39bc1
3 changed files with 23 additions and 3 deletions

View File

@@ -24,6 +24,10 @@ impl TokenSerializable for SearchQuery {
}
impl SearchQuery {
pub fn new(search: String) -> Self {
let author: Option<Pubkey> = None;
Self { search, author }
}
/// Convert the query to a filter-compatible MessagePack value
fn to_msgpack_value(&self) -> Value {
let mut values: Vec<(Value, Value)> = Vec::with_capacity(2);