pub enum DeltaEvent {
FeatureUpdated {
event_id: u32,
feature: ClientFeature,
},
FeatureRemoved {
event_id: u32,
feature_name: String,
project: String,
},
SegmentUpdated {
event_id: u32,
segment: Segment,
},
SegmentRemoved {
event_id: u32,
segment_id: i32,
},
Hydration {
event_id: u32,
features: Vec<ClientFeature>,
segments: Vec<Segment>,
},
}Variants§
FeatureUpdated
Event for a feature update.
FeatureRemoved
Event for a feature removal.
SegmentUpdated
Event for a segment update.
SegmentRemoved
Event for a segment removal.
Hydration
Hydration event for features and segments.
Implementations§
Source§impl DeltaEvent
impl DeltaEvent
pub fn get_event_id(&self) -> u32
Trait Implementations§
Source§impl Clone for DeltaEvent
impl Clone for DeltaEvent
Source§fn clone(&self) -> DeltaEvent
fn clone(&self) -> DeltaEvent
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 DeltaEvent
impl Debug for DeltaEvent
Source§impl<'de> Deserialize<'de> for DeltaEvent
impl<'de> Deserialize<'de> for DeltaEvent
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 DeltaEvent
impl PartialEq for DeltaEvent
Source§impl Serialize for DeltaEvent
impl Serialize for DeltaEvent
impl Eq for DeltaEvent
impl StructuralPartialEq for DeltaEvent
Auto Trait Implementations§
impl Freeze for DeltaEvent
impl RefUnwindSafe for DeltaEvent
impl Send for DeltaEvent
impl Sync for DeltaEvent
impl Unpin for DeltaEvent
impl UnsafeUnpin for DeltaEvent
impl UnwindSafe for DeltaEvent
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