Skip to content

Commit f998763

Browse files
committed
add filter_by_page helper to NotionSearch
1 parent 75a1b41 commit f998763

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/models/search.rs

+6
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,12 @@ impl NotionSearch {
346346
value: FilterValue::Database,
347347
}
348348
}
349+
pub fn filter_by_pages() -> Self {
350+
Self::Filter {
351+
property: FilterProperty::Object,
352+
value: FilterValue::Page,
353+
}
354+
}
349355
}
350356

351357
impl From<NotionSearch> for SearchRequest {

0 commit comments

Comments
 (0)