pub struct DataCard { /* private fields */ }Expand description
DataCard widget for displaying dataset metadata.
Implementations§
Source§impl DataCard
impl DataCard
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set description.
Sourcepub const fn quality(self, quality: DataQuality) -> Self
pub const fn quality(self, quality: DataQuality) -> Self
Set quality.
Sourcepub fn column(self, col: DataColumn) -> Self
pub fn column(self, col: DataColumn) -> Self
Add a schema column.
Sourcepub fn columns(self, cols: impl IntoIterator<Item = DataColumn>) -> Self
pub fn columns(self, cols: impl IntoIterator<Item = DataColumn>) -> Self
Add multiple schema columns.
Add multiple tags.
Sourcepub fn metadata_entry(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn metadata_entry( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add custom metadata.
Sourcepub const fn background(self, color: Color) -> Self
pub const fn background(self, color: Color) -> Self
Set background color.
Sourcepub const fn border_color(self, color: Color) -> Self
pub const fn border_color(self, color: Color) -> Self
Set border color.
Sourcepub fn corner_radius(self, radius: f32) -> Self
pub fn corner_radius(self, radius: f32) -> Self
Set corner radius.
Sourcepub const fn show_schema(self, show: bool) -> Self
pub const fn show_schema(self, show: bool) -> Self
Set whether to show schema preview.
Sourcepub fn accessible_name(self, name: impl Into<String>) -> Self
pub fn accessible_name(self, name: impl Into<String>) -> Self
Set accessible name.
Sourcepub fn get_version(&self) -> &str
pub fn get_version(&self) -> &str
Get version.
Sourcepub fn get_description(&self) -> Option<&str>
pub fn get_description(&self) -> Option<&str>
Get description.
Sourcepub const fn get_quality(&self) -> DataQuality
pub const fn get_quality(&self) -> DataQuality
Get quality.
Sourcepub fn get_format(&self) -> Option<&str>
pub fn get_format(&self) -> Option<&str>
Get format.
Sourcepub fn get_source(&self) -> Option<&str>
pub fn get_source(&self) -> Option<&str>
Get source.
Sourcepub fn get_schema(&self) -> &[DataColumn]
pub fn get_schema(&self) -> &[DataColumn]
Get schema.
Sourcepub fn get_license(&self) -> Option<&str>
pub fn get_license(&self) -> Option<&str>
Get license.
Get tags.
Sourcepub fn get_metadata(&self, key: &str) -> Option<&str>
pub fn get_metadata(&self, key: &str) -> Option<&str>
Get custom metadata.
Sourcepub fn has_schema(&self) -> bool
pub fn has_schema(&self) -> bool
Check if has schema.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Get column count.
Trait Implementations§
Source§impl Brick for DataCard
impl Brick for DataCard
Source§fn brick_name(&self) -> &'static str
fn brick_name(&self) -> &'static str
Get the brick’s unique type name
Source§fn assertions(&self) -> &[BrickAssertion]
fn assertions(&self) -> &[BrickAssertion]
Get all assertions for this brick
Source§fn budget(&self) -> BrickBudget
fn budget(&self) -> BrickBudget
Get the performance budget
Source§fn verify(&self) -> BrickVerification
fn verify(&self) -> BrickVerification
Verify all assertions against current state Read more
Source§fn can_render(&self) -> bool
fn can_render(&self) -> bool
Check if this brick can be rendered (all assertions pass)
Source§impl<'de> Deserialize<'de> for DataCard
impl<'de> Deserialize<'de> for DataCard
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
Source§impl Widget for DataCard
impl Widget for DataCard
Source§fn measure(&self, constraints: Constraints) -> Size
fn measure(&self, constraints: Constraints) -> Size
Compute intrinsic size constraints.
Source§fn layout(&mut self, bounds: Rect) -> LayoutResult
fn layout(&mut self, bounds: Rect) -> LayoutResult
Position children within allocated bounds.
Source§fn children_mut(&mut self) -> &mut [Box<dyn Widget>]
fn children_mut(&mut self) -> &mut [Box<dyn Widget>]
Get mutable child widgets.
Source§fn is_interactive(&self) -> bool
fn is_interactive(&self) -> bool
Check if this widget is interactive (can receive focus/events).
Source§fn is_focusable(&self) -> bool
fn is_focusable(&self) -> bool
Check if this widget can receive keyboard focus.
Source§fn accessible_name(&self) -> Option<&str>
fn accessible_name(&self) -> Option<&str>
Get the accessible name for screen readers.
Source§fn accessible_role(&self) -> AccessibleRole
fn accessible_role(&self) -> AccessibleRole
Get the accessible role.
Auto Trait Implementations§
impl Freeze for DataCard
impl RefUnwindSafe for DataCard
impl Send for DataCard
impl Sync for DataCard
impl Unpin for DataCard
impl UnwindSafe for DataCard
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
Source§impl<T> BrickWidgetExt for Twhere
T: Brick,
impl<T> BrickWidgetExt for Twhere
T: Brick,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().