pub struct CoachmarkDismissal { /* private fields */ }Expand description
A record of a coachmark dismissal, including when it was dismissed and on which app version.
Implementations§
Source§impl CoachmarkDismissal
impl CoachmarkDismissal
Sourcepub fn builder() -> Builder<CoachmarkIdStage>
pub fn builder() -> Builder<CoachmarkIdStage>
Returns a new builder.
Source§impl CoachmarkDismissal
impl CoachmarkDismissal
Sourcepub fn new(
coachmark_id: impl Into<String>,
dismissed_at: DateTime<Utc>,
app_version: impl Into<String>,
) -> Self
pub fn new( coachmark_id: impl Into<String>, dismissed_at: DateTime<Utc>, app_version: impl Into<String>, ) -> Self
Constructs a new instance of the type.
Sourcepub fn coachmark_id(&self) -> &str
pub fn coachmark_id(&self) -> &str
The coachmark identifier (typically the feature flag name)
Sourcepub fn dismissed_at(&self) -> DateTime<Utc>
pub fn dismissed_at(&self) -> DateTime<Utc>
ISO 8601 timestamp of when the coachmark was dismissed
Sourcepub fn app_version(&self) -> &str
pub fn app_version(&self) -> &str
The apps-scout version (semver) when the coachmark was dismissed
Sourcepub fn step_index(&self) -> Option<i32>
pub fn step_index(&self) -> Option<i32>
The step index when dismissed (for multi-step coachmarks). If not present, the coachmark was dismissed via the X button.
Trait Implementations§
Source§impl Clone for CoachmarkDismissal
impl Clone for CoachmarkDismissal
Source§fn clone(&self) -> CoachmarkDismissal
fn clone(&self) -> CoachmarkDismissal
Returns a duplicate of the value. Read more
1.0.0 · 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 CoachmarkDismissal
impl Debug for CoachmarkDismissal
Source§impl<'de> Deserialize<'de> for CoachmarkDismissal
impl<'de> Deserialize<'de> for CoachmarkDismissal
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 From<CoachmarkDismissal> for Builder<Complete>
impl From<CoachmarkDismissal> for Builder<Complete>
Source§fn from(v: CoachmarkDismissal) -> Self
fn from(v: CoachmarkDismissal) -> Self
Converts to this type from the input type.
Source§impl Hash for CoachmarkDismissal
impl Hash for CoachmarkDismissal
Source§impl Ord for CoachmarkDismissal
impl Ord for CoachmarkDismissal
Source§fn cmp(&self, other: &CoachmarkDismissal) -> Ordering
fn cmp(&self, other: &CoachmarkDismissal) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CoachmarkDismissal
impl PartialEq for CoachmarkDismissal
Source§impl PartialOrd for CoachmarkDismissal
impl PartialOrd for CoachmarkDismissal
Source§impl Serialize for CoachmarkDismissal
impl Serialize for CoachmarkDismissal
impl Eq for CoachmarkDismissal
impl StructuralPartialEq for CoachmarkDismissal
Auto Trait Implementations§
impl Freeze for CoachmarkDismissal
impl RefUnwindSafe for CoachmarkDismissal
impl Send for CoachmarkDismissal
impl Sync for CoachmarkDismissal
impl Unpin for CoachmarkDismissal
impl UnwindSafe for CoachmarkDismissal
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request