pub struct SyntheticItem {
pub id: u32,
pub name: String,
pub description: String,
pub value1: f32,
pub value2: f32,
pub state: String,
pub owner: String,
pub count: u32,
}Expand description
A synthetic item for load testing (framework-agnostic)
Fields§
§id: u32Unique identifier
name: StringName (searchable)
description: StringDescription/command line (searchable, can be long)
value1: f32Numeric value 1 (e.g., CPU %)
value2: f32Numeric value 2 (e.g., memory %)
state: StringState string
owner: StringOwner/user
count: u32Additional count (e.g., threads)
Implementations§
Source§impl SyntheticItem
impl SyntheticItem
Sourcepub fn matches_filter(&self, filter: &str) -> bool
pub fn matches_filter(&self, filter: &str) -> bool
Check if item matches filter (case-insensitive)
Sourcepub fn matches_filter_precomputed(&self, filter_lower: &str) -> bool
pub fn matches_filter_precomputed(&self, filter_lower: &str) -> bool
Optimized filter matching with pre-lowercased filter
Trait Implementations§
Source§impl Clone for SyntheticItem
impl Clone for SyntheticItem
Source§fn clone(&self) -> SyntheticItem
fn clone(&self) -> SyntheticItem
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 moreAuto Trait Implementations§
impl Freeze for SyntheticItem
impl RefUnwindSafe for SyntheticItem
impl Send for SyntheticItem
impl Sync for SyntheticItem
impl Unpin for SyntheticItem
impl UnsafeUnpin for SyntheticItem
impl UnwindSafe for SyntheticItem
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more