Struct mpdpopm::filters_ast::FilterStickerNames [−][src]
pub struct FilterStickerNames<'a> { /* fields omitted */ }
Expand description
Convenience struct collecting the names for assorted stickers on which one may search
While the search terms ‘rating’, ‘playcount’ &c are fixed & part of the filter grammar offered by mpdpopm, the precise names of the corresponding stickers are configurable & hence must be passed in. Three references to str is already unweildy IMO, and since I expect the number of stickers on which one can search to grow further, I decided to wrap ’em up in a struct. The lifetime is there to support the caller just using a reference to an existing string rather than making a copy.