pub struct ContributionBase {
    pub description: Option<String>,
    pub id: Option<String>,
    pub visible_to: Vec<String>,
}Expand description
Base class shared by contributions and contribution types
Fields§
§description: Option<String>Description of the contribution/type
id: Option<String>Fully qualified identifier of the contribution/type
visible_to: Vec<String>VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: “ms” - Means only the “ms” publisher can reference this. “ms.vss-web” - Means only the “vss-web” extension from the “ms” publisher can reference this.
Implementations§
Trait Implementations§
source§impl Clone for ContributionBase
 
impl Clone for ContributionBase
source§fn clone(&self) -> ContributionBase
 
fn clone(&self) -> ContributionBase
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 ContributionBase
 
impl Debug for ContributionBase
source§impl Default for ContributionBase
 
impl Default for ContributionBase
source§fn default() -> ContributionBase
 
fn default() -> ContributionBase
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ContributionBase
 
impl<'de> Deserialize<'de> for ContributionBase
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 ContributionBase
 
impl PartialEq for ContributionBase
source§fn eq(&self, other: &ContributionBase) -> bool
 
fn eq(&self, other: &ContributionBase) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for ContributionBase
 
impl Serialize for ContributionBase
impl StructuralPartialEq for ContributionBase
Auto Trait Implementations§
impl RefUnwindSafe for ContributionBase
impl Send for ContributionBase
impl Sync for ContributionBase
impl Unpin for ContributionBase
impl UnwindSafe for ContributionBase
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