pub struct UserOptinView {
pub can_set: Option<bool>,
pub handle: Option<String>,
pub listed: Option<bool>,
}Fields§
§can_set: Option<bool>CanSet is false when the caller’s ledger identity cannot be resolved (no user name on the principal). Writing the preference would fail, so hide the control.
handle: Option<String>Handle is the display name on the caller’s listed row. Empty when they never chose one; opting in without a handle sets it to their username, so a listed row is never blank.
listed: Option<bool>Listed is true when the caller’s board row is published under Handle to other viewers. False — the default for anyone who never opted in — anonymizes the row; the metric still counts, only the name is withheld.
Implementations§
Source§impl UserOptinView
impl UserOptinView
pub fn new() -> UserOptinView
Trait Implementations§
Source§impl Clone for UserOptinView
impl Clone for UserOptinView
Source§fn clone(&self) -> UserOptinView
fn clone(&self) -> UserOptinView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserOptinView
impl Debug for UserOptinView
Source§impl Default for UserOptinView
impl Default for UserOptinView
Source§fn default() -> UserOptinView
fn default() -> UserOptinView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserOptinView
impl<'de> Deserialize<'de> for UserOptinView
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 PartialEq for UserOptinView
impl PartialEq for UserOptinView
Source§impl Serialize for UserOptinView
impl Serialize for UserOptinView
impl StructuralPartialEq for UserOptinView
Auto Trait Implementations§
impl Freeze for UserOptinView
impl RefUnwindSafe for UserOptinView
impl Send for UserOptinView
impl Sync for UserOptinView
impl Unpin for UserOptinView
impl UnsafeUnpin for UserOptinView
impl UnwindSafe for UserOptinView
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