pub struct AssignmentEvent {
pub base: Arc<AssignmentEventBase>,
pub subject: Str,
pub subject_attributes: Arc<HashMap<Str, AttributeValue>>,
pub timestamp: DateTime<Utc>,
pub evaluation_details: Option<Arc<EvaluationDetails>>,
}
Expand description
Represents an event capturing the assignment of a feature flag to a subject and its logging details.
Fields§
§base: Arc<AssignmentEventBase>
§subject: Str
The key identifying the subject receiving the assignment.
subject_attributes: Arc<HashMap<Str, AttributeValue>>
Custom attributes of the subject relevant to the assignment.
timestamp: DateTime<Utc>
The timestamp indicating when the assignment event occurred.
evaluation_details: Option<Arc<EvaluationDetails>>
Evaluation details that could help with debugging the assigment. Only populated when
details-version of the get_assigment
was called.
Trait Implementations§
Source§impl Clone for AssignmentEvent
impl Clone for AssignmentEvent
Source§fn clone(&self) -> AssignmentEvent
fn clone(&self) -> AssignmentEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AssignmentEvent
impl Debug for AssignmentEvent
Source§impl Serialize for AssignmentEvent
impl Serialize for AssignmentEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !Freeze for AssignmentEvent
impl RefUnwindSafe for AssignmentEvent
impl Send for AssignmentEvent
impl Sync for AssignmentEvent
impl Unpin for AssignmentEvent
impl UnwindSafe for AssignmentEvent
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