pub struct ClientContribution {
pub description: Option<String>,
pub id: Option<String>,
pub includes: Vec<String>,
pub properties: Option<Value>,
pub targets: Vec<String>,
pub type_: Option<String>,
}
Expand description
Representation of a ContributionNode that can be used for serialized to clients.
Fields§
§description: Option<String>
Description of the contribution/type
id: Option<String>
Fully qualified identifier of the contribution/type
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
targets: Vec<String>
The ids of the contribution(s) that this contribution targets. (parent contributions)
type_: Option<String>
Id of the Contribution Type
Implementations§
Trait Implementations§
source§impl Clone for ClientContribution
impl Clone for ClientContribution
source§fn clone(&self) -> ClientContribution
fn clone(&self) -> ClientContribution
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 ClientContribution
impl Debug for ClientContribution
source§impl Default for ClientContribution
impl Default for ClientContribution
source§fn default() -> ClientContribution
fn default() -> ClientContribution
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ClientContribution
impl<'de> Deserialize<'de> for ClientContribution
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 ClientContribution
impl PartialEq for ClientContribution
source§fn eq(&self, other: &ClientContribution) -> bool
fn eq(&self, other: &ClientContribution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ClientContribution
impl Serialize for ClientContribution
impl StructuralPartialEq for ClientContribution
Auto Trait Implementations§
impl Freeze for ClientContribution
impl RefUnwindSafe for ClientContribution
impl Send for ClientContribution
impl Sync for ClientContribution
impl Unpin for ClientContribution
impl UnwindSafe for ClientContribution
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