Struct search_provider::ResultMetaBuilder
source · pub struct ResultMetaBuilder { /* private fields */ }
Expand description
Create an instance of ResultMeta
.
Implementations§
source§impl ResultMetaBuilder
impl ResultMetaBuilder
pub fn new(id: ResultID, name: &str) -> Self
sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
Set a short description of the search result.
sourcepub fn clipboard_text(self, clipboard_text: &str) -> Self
pub fn clipboard_text(self, clipboard_text: &str) -> Self
Set a text to be copied to the clipboard when the result is activated.
sourcepub fn icon(self, icon: OwnedValue) -> Self
pub fn icon(self, icon: OwnedValue) -> Self
Set an icon serialized with gio::Icon::Serialize
.
sourcepub fn icon_data(self, icon_data: IconData) -> Self
pub fn icon_data(self, icon_data: IconData) -> Self
Set the icon as data. GNOME Shell will re-construct it using GdkPixbuf’s API.
sourcepub fn build(self) -> ResultMeta
pub fn build(self) -> ResultMeta
Build an instance of ResultMeta
.
Auto Trait Implementations§
impl RefUnwindSafe for ResultMetaBuilder
impl Send for ResultMetaBuilder
impl Sync for ResultMetaBuilder
impl Unpin for ResultMetaBuilder
impl UnwindSafe for ResultMetaBuilder
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