pub struct SavedView {
pub id: SavedViewId,
pub name: String,
pub show_on_dashboard: bool,
pub show_in_sidebar: bool,
pub sort_field: Option<String>,
pub sort_reverse: Option<bool>,
pub filter_rules: Option<Vec<FilterRule>>,
pub display_mode: Option<DisplayMode>,
pub display_fields: Option<Vec<String>>,
pub page_size: Option<u32>,
pub owner: Option<UserId>,
pub permissions: ItemPermissions,
}Expand description
A saved view in the paperless UI.
Fields§
§id: SavedViewIdThe ID of the saved view.
name: StringThe name of the saved view.
show_on_dashboard: boolWhether the saved view should be shown on the dashboard.
Whether the saved view should be shown in the sidebar.
sort_field: Option<String>The field to sort the view by.
sort_reverse: Option<bool>Whether to sort the view in reverse order.
filter_rules: Option<Vec<FilterRule>>The filter rules determining which documents are shown in the view.
display_mode: Option<DisplayMode>The display mode of the view.
display_fields: Option<Vec<String>>The fields to display in the view.
page_size: Option<u32>The number of documents to show per page.
owner: Option<UserId>The user who owns the saved view.
permissions: ItemPermissionsPermissions for the saved view.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SavedView
impl<'de> Deserialize<'de> for SavedView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SavedView
impl RefUnwindSafe for SavedView
impl Send for SavedView
impl Sync for SavedView
impl Unpin for SavedView
impl UnsafeUnpin for SavedView
impl UnwindSafe for SavedView
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