17 lines
306 B
Rust
17 lines
306 B
Rust
#[derive(Clone, Debug)]
|
|
pub struct RagSearchOptions {
|
|
pub limit: u64,
|
|
pub exact: bool,
|
|
}
|
|
|
|
impl RagSearchOptions {
|
|
pub fn new(limit: u64) -> Self {
|
|
Self { limit, exact: true }
|
|
}
|
|
|
|
pub fn with_exact(mut self, exact: bool) -> Self {
|
|
self.exact = exact;
|
|
self
|
|
}
|
|
}
|