pub struct Contribution {
pub contribution_base: ContributionBase,
pub constraints: Vec<ContributionConstraint>,
pub includes: Vec<String>,
pub properties: Option<Value>,
pub restricted_to: Vec<String>,
pub targets: Vec<String>,
pub type_: Option<String>,
}
Expand description
An individual contribution made by an extension
Fields§
§contribution_base: ContributionBase
§constraints: Vec<ContributionConstraint>
List of constraints (filters) that should be applied to the availability of this contribution
includes: Vec<String>
Includes is a set of contributions that should have this contribution included in their targets list.
properties: Option<Value>
Properties/attributes of this contribution
restricted_to: Vec<String>
List of demanded claims in order for the user to see this contribution (like anonymous, public, member…).
targets: Vec<String>
The ids of the contribution(s) that this contribution targets. (parent contributions)
type_: Option<String>
Id of the Contribution Type
Implementations§
source§impl Contribution
impl Contribution
Trait Implementations§
source§impl Clone for Contribution
impl Clone for Contribution
source§fn clone(&self) -> Contribution
fn clone(&self) -> Contribution
Returns a copy of the value. Read more
1.0.0 · 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 Default for Contribution
impl Default for Contribution
source§fn default() -> Contribution
fn default() -> Contribution
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Contribution
impl<'de> Deserialize<'de> for Contribution
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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§fn eq(&self, other: &Contribution) -> bool
fn eq(&self, other: &Contribution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Contribution
impl Serialize for Contribution
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 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