pub struct CardBuilder { /* private fields */ }
Expand description
Builder for creating Card instances
Implementations§
Source§impl CardBuilder
impl CardBuilder
Sourcepub fn new(id: Option<CardId>, name: String, card_type: CardType) -> Self
pub fn new(id: Option<CardId>, name: String, card_type: CardType) -> Self
Create a new CardBuilder with required fields
Sourcepub fn new_card(name: impl Into<String>) -> Self
pub fn new_card(name: impl Into<String>) -> Self
Create a new CardBuilder for creating a new card (ID will be assigned by server)
pub fn description<S: Into<String>>(self, desc: S) -> Self
pub fn collection_id(self, id: i32) -> Self
pub fn display<S: Into<String>>(self, display: S) -> Self
pub fn visualization_settings(self, settings: Value) -> Self
pub fn dataset_query(self, query: Value) -> Self
pub fn created_at(self, dt: DateTime<Utc>) -> Self
pub fn updated_at(self, dt: DateTime<Utc>) -> Self
pub fn archived(self, archived: bool) -> Self
pub fn enable_embedding(self, enable: bool) -> Self
pub fn embedding_params(self, params: Value) -> Self
pub fn result_metadata(self, metadata: Value) -> Self
pub fn card_type(self, card_type: CardType) -> Self
pub fn entity_id<S: Into<String>>(self, id: S) -> Self
pub fn cache_ttl(self, ttl: i32) -> Self
pub fn collection_position(self, position: i32) -> Self
pub fn dashboard_tab_id(self, id: i32) -> Self
pub fn dashboard_id(self, id: i32) -> Self
pub fn parameters(self, params: Vec<Parameter>) -> Self
pub fn parameter_mappings(self, mappings: Vec<ParameterMapping>) -> Self
pub fn creator_id(self, id: i32) -> Self
pub fn database_id(self, id: i32) -> Self
pub fn table_id(self, id: i32) -> Self
pub fn query_type(self, query_type: QueryType) -> Self
pub fn public_uuid<S: Into<String>>(self, uuid: S) -> Self
pub fn made_public_by_id(self, id: i32) -> Self
Auto Trait Implementations§
impl Freeze for CardBuilder
impl RefUnwindSafe for CardBuilder
impl Send for CardBuilder
impl Sync for CardBuilder
impl Unpin for CardBuilder
impl UnwindSafe for CardBuilder
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