pub struct Search {
pub pattern: String,
pub mode: SearchMode,
pub limit: i32,
}Expand description
A getMatchingPVs request.
Fields§
§pattern: String§mode: SearchMode§limit: i32Names wanted at most; -1 for all.
Implementations§
Source§impl Search
impl Search
Sourcepub fn from_user(text: &str, limit: i32) -> Self
pub fn from_user(text: &str, limit: i32) -> Self
What the search box sends for text (surrounding whitespace
trimmed), always as a regex so that names holding regex
metacharacters (XF:23ID1-ES{Dif-Ax:TH}Mtr) match literally: the
appliance turns a pv= glob into a regex without escaping them.
- Plain text matches anywhere in the name, ignoring case:
sinefindsMOCK:SINE. - Text with
*or?is a glob matching the whole name, with case:*any run of characters,?any one, everything else literal.
pub fn regex(re: impl Into<String>, limit: i32) -> Self
Trait Implementations§
impl StructuralPartialEq for Search
Auto Trait Implementations§
impl Freeze for Search
impl RefUnwindSafe for Search
impl Send for Search
impl Sync for Search
impl Unpin for Search
impl UnsafeUnpin for Search
impl UnwindSafe for Search
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