pub struct ViewVisibility { /* private fields */ }Expand description
The board visibility part of a plan (data-model §3).
The two settings the board surface already has: the columns hidden from
render, and whether the computed “Mismatched” pseudo-column is shown. A
present ViewVisibility is an absolute snapshot — hidden_columns
replaces the live board’s hidden set on apply — while the enclosing
ViewPlan::visibility being None means “do not constrain visibility,
inherit the live board”. That distinction is what lets an acceptance run
restore “nothing hidden” rather than inherit someone else’s hidden columns.
Implementations§
Source§impl ViewVisibility
impl ViewVisibility
Sourcepub fn new(hidden_columns: Vec<String>, show_mismatch: Option<bool>) -> Self
pub fn new(hidden_columns: Vec<String>, show_mismatch: Option<bool>) -> Self
A visibility setting, normalized: column names trimmed, blanks dropped, duplicates collapsed to their first position.
The columns hidden from render, in declaration order.
Sourcepub const fn show_mismatch(&self) -> Option<bool>
pub const fn show_mismatch(&self) -> Option<bool>
Whether the mismatched pseudo-column is shown, when the plan says.
None means “leave the board’s own setting alone”; Some(false) is a
real override that hides the column on a board configured to show it.
Trait Implementations§
Source§impl Clone for ViewVisibility
impl Clone for ViewVisibility
Source§impl Debug for ViewVisibility
impl Debug for ViewVisibility
Source§impl Default for ViewVisibility
impl Default for ViewVisibility
impl Eq for ViewVisibility
Source§impl PartialEq for ViewVisibility
impl PartialEq for ViewVisibility
impl StructuralPartialEq for ViewVisibility
Auto Trait Implementations§
impl Freeze for ViewVisibility
impl RefUnwindSafe for ViewVisibility
impl Send for ViewVisibility
impl Sync for ViewVisibility
impl Unpin for ViewVisibility
impl UnsafeUnpin for ViewVisibility
impl UnwindSafe for ViewVisibility
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 more