pub struct KymaWidgetExtractor { /* private fields */ }
Implementations§
Source§impl KymaWidgetExtractor
impl KymaWidgetExtractor
pub fn new() -> Self
pub fn cache_widget_description(&mut self, kyma_data: HashMap<String, Value>)
pub fn create_training_widget( &self, event_id: i64, current_value: f64, ) -> Option<Widget>
pub fn get_cached_description( &self, event_id: i64, ) -> Option<&HashMap<String, Value>>
pub fn get_cached_event_ids(&self) -> Vec<i64>
pub fn clear_cache(&mut self)
pub fn cache_size(&self) -> usize
pub fn extract_all_widgets_with_values( &self, values: &HashMap<i64, f64>, ) -> Vec<Widget>
pub fn extract_widget_metadata(&self, event_id: i64) -> Option<WidgetMetadata>
pub fn parse_kyma_json_string( json_str: &str, ) -> Result<HashMap<String, Value>, String>
pub fn validate_kyma_data(data: &HashMap<String, Value>) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KymaWidgetExtractor
impl RefUnwindSafe for KymaWidgetExtractor
impl Send for KymaWidgetExtractor
impl Sync for KymaWidgetExtractor
impl Unpin for KymaWidgetExtractor
impl UnwindSafe for KymaWidgetExtractor
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