pub struct EntityTarget {
pub cluster: Option<String>,
pub entity_ids: Option<Vec<String>>,
pub filter: Option<HashMap<String, String>>,
pub count: Option<u32>,
pub fraction: Option<f64>,
}Fields§
§cluster: Option<String>Target by cluster type.
entity_ids: Option<Vec<String>>Target by specific entity IDs.
filter: Option<HashMap<String, String>>Target by attribute filter (e.g., country = “US”).
count: Option<u32>Number of entities to affect (random selection from filter).
fraction: Option<f64>Fraction of entities to affect (alternative to count).
Trait Implementations§
Source§impl Clone for EntityTarget
impl Clone for EntityTarget
Source§fn clone(&self) -> EntityTarget
fn clone(&self) -> EntityTarget
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 EntityTarget
impl Debug for EntityTarget
Source§impl<'de> Deserialize<'de> for EntityTarget
impl<'de> Deserialize<'de> for EntityTarget
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
Auto Trait Implementations§
impl Freeze for EntityTarget
impl RefUnwindSafe for EntityTarget
impl Send for EntityTarget
impl Sync for EntityTarget
impl Unpin for EntityTarget
impl UnsafeUnpin for EntityTarget
impl UnwindSafe for EntityTarget
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