pub struct DashboardBuilder { /* private fields */ }
Expand description
Builder for creating Dashboard instances
Implementations§
Source§impl DashboardBuilder
impl DashboardBuilder
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Creates a new dashboard builder with the given name
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Sets the dashboard description
Sourcepub fn collection_id(self, id: i32) -> Self
pub fn collection_id(self, id: i32) -> Self
Sets the collection ID
Sourcepub fn add_parameter(self, param: DashboardParameter) -> Self
pub fn add_parameter(self, param: DashboardParameter) -> Self
Adds a parameter to the dashboard
Sourcepub fn add_card(self, card: DashboardCard) -> Self
pub fn add_card(self, card: DashboardCard) -> Self
Adds a card to the dashboard
Sourcepub fn collection_position(self, position: i32) -> Self
pub fn collection_position(self, position: i32) -> Self
Sets the collection position
Sourcepub fn enable_embedding(self, enabled: bool) -> Self
pub fn enable_embedding(self, enabled: bool) -> Self
Sets whether embedding is enabled
Sourcepub fn embedding_params(self, params: Value) -> Self
pub fn embedding_params(self, params: Value) -> Self
Sets the embedding parameters
Auto Trait Implementations§
impl Freeze for DashboardBuilder
impl RefUnwindSafe for DashboardBuilder
impl Send for DashboardBuilder
impl Sync for DashboardBuilder
impl Unpin for DashboardBuilder
impl UnwindSafe for DashboardBuilder
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