pub struct Visual {
pub name: NameKey,
pub visual_type: String,
pub wells: Vec<FieldWell>,
pub filters: Vec<Filter>,
pub sorts: Vec<FieldTarget>,
pub conditional_formatting: Vec<FieldTarget>,
pub alt_text: Vec<FieldTarget>,
pub tooltip_page: Option<NameKey>,
}Expand description
One visual on a page.
Slicers are not a separate kind: a slicer is a visual with visual_type
"slicer", and its field wells carry the binding. Saved slicer selections
are literal values, not references, and are not modeled.
Fields§
§name: NameKeyVisual object name — the PBIR folder name and bookmarks’ key.
visual_type: StringVisual type as written, e.g. "donutChart", "slicer", "card".
wells: Vec<FieldWell>Field wells (PBIR query.queryState): role → projections.
filters: Vec<Filter>Filters applied to this visual only.
sorts: Vec<FieldTarget>Sort-by fields (PBIR sortDefinition), in sort order.
conditional_formatting: Vec<FieldTarget>Fields driving conditional-formatting rules.
alt_text: Vec<FieldTarget>Fields referenced by the visual’s accessibility alt text
(visualContainerObjects.general.altText): a screen reader reads it,
so dropping the field breaks the visual.
tooltip_page: Option<NameKey>Page used as this visual’s tooltip, by page object name. A report-internal reference: it keeps the page reachable, not a model object.
Trait Implementations§
impl Eq for Visual
impl StructuralPartialEq for Visual
Auto Trait Implementations§
impl Freeze for Visual
impl RefUnwindSafe for Visual
impl Send for Visual
impl Sync for Visual
impl Unpin for Visual
impl UnsafeUnpin for Visual
impl UnwindSafe for Visual
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.