pub struct ViewIndex { /* private fields */ }Implementations§
Source§impl ViewIndex
impl ViewIndex
pub fn new() -> Self
pub fn add_spec(&mut self, spec: ViewSpec)
pub fn by_export(&self, entity: &str) -> &[ViewSpec]
pub fn get_view(&self, id: &str) -> Option<&ViewSpec>
pub fn get_derived_views(&self) -> Vec<&ViewSpec>
pub fn get_derived_views_for_source( &self, source_view_id: &str, ) -> Vec<&ViewSpec>
pub fn sorted_caches(&self) -> Arc<RwLock<HashMap<String, SortedViewCache>>>
pub async fn init_sorted_cache( &self, view_id: &str, sort_field: Vec<String>, order: SortOrder, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewIndex
impl !RefUnwindSafe for ViewIndex
impl Send for ViewIndex
impl Sync for ViewIndex
impl Unpin for ViewIndex
impl !UnwindSafe for ViewIndex
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