pub struct Contribution {
pub module: String,
pub target: String,
pub kind: String,
pub id: String,
pub view: String,
pub title: String,
pub icon: Option<String>,
pub order: i32,
pub options: Value,
}Expand description
One thing a module offers another.
Fields§
§module: StringThe module offering it, whose view it is.
target: StringThe module it’s for, like control-center.
kind: StringWhat it is to the target, like page or card. The target decides
which kinds it takes.
id: StringUnique within the offering module.
view: Stringmodules/<module>/<view>.qml. It gets the offering module’s
published state as payload. Empty for what has no view, like a
launcher provider.
title: String§icon: Option<String>An icon name from the icon theme, or a path.
order: i32Lower comes first.
options: ValueAnything else the target reads, like a card’s width.
Trait Implementations§
Source§impl Clone for Contribution
impl Clone for Contribution
Source§fn clone(&self) -> Contribution
fn clone(&self) -> Contribution
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 moreSource§impl Debug for Contribution
impl Debug for Contribution
Source§impl<'de> Deserialize<'de> for Contribution
impl<'de> Deserialize<'de> for Contribution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Contribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Contribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Contribution
impl PartialEq for Contribution
Source§impl Serialize for Contribution
impl Serialize for Contribution
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Contribution
Auto Trait Implementations§
impl Freeze for Contribution
impl RefUnwindSafe for Contribution
impl Send for Contribution
impl Sync for Contribution
impl Unpin for Contribution
impl UnsafeUnpin for Contribution
impl UnwindSafe for Contribution
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