#[derive(Clone, Copy, Debug, Default)]
pub struct QueryOptions {
pub include_instance_types: Option<bool>,
pub prefetch_size: Option<u64>,
pub include_query_structure: Option<bool>,
}
impl QueryOptions {
pub fn new() -> Self {
Self::default()
}
pub fn include_instance_types(self, include_instance_types: bool) -> Self {
Self { include_instance_types: Some(include_instance_types), ..self }
}
pub fn prefetch_size(self, prefetch_size: u64) -> Self {
Self { prefetch_size: Some(prefetch_size), ..self }
}
pub fn include_query_structure(self, include_query_structure: bool) -> Self {
Self { include_query_structure: Some(include_query_structure), ..self }
}
}