pub struct ExtensionManifest {
Show 13 fields pub base_uri: Option<String>, pub constraints: Vec<ContributionConstraint>, pub contributions: Vec<Contribution>, pub contribution_types: Vec<ContributionType>, pub demands: Vec<String>, pub event_callbacks: Option<ExtensionEventCallbackCollection>, pub fallback_base_uri: Option<String>, pub language: Option<String>, pub licensing: Option<ExtensionLicensing>, pub manifest_version: Option<f64>, pub restricted_to: Vec<String>, pub scopes: Vec<String>, pub service_instance_type: Option<String>,
}
Expand description

Base class for extension properties which are shared by the extension manifest and the extension model

Fields§

§base_uri: Option<String>

Uri used as base for other relative uri’s defined in extension

§constraints: Vec<ContributionConstraint>

List of shared constraints defined by this extension

§contributions: Vec<Contribution>

List of contributions made by this extension

§contribution_types: Vec<ContributionType>

List of contribution types defined by this extension

§demands: Vec<String>

List of explicit demands required by this extension

§event_callbacks: Option<ExtensionEventCallbackCollection>

Collection of event callbacks - endpoints called when particular extension events occur.

§fallback_base_uri: Option<String>

Secondary location that can be used as base for other relative uri’s defined in extension

§language: Option<String>

Language Culture Name set by the Gallery

§licensing: Option<ExtensionLicensing>

How an extension should handle including contributions based on licensing

§manifest_version: Option<f64>

Version of the extension manifest format/content

§restricted_to: Vec<String>

Default user claims applied to all contributions (except the ones which have been specified restrictedTo explicitly) to control the visibility of a contribution.

§scopes: Vec<String>

List of all oauth scopes required by this extension

§service_instance_type: Option<String>

The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed

Implementations§

Trait Implementations§

source§

impl Clone for ExtensionManifest

source§

fn clone(&self) -> ExtensionManifest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExtensionManifest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ExtensionManifest

source§

fn default() -> ExtensionManifest

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ExtensionManifest

source§

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<ExtensionManifest> for ExtensionManifest

source§

fn eq(&self, other: &ExtensionManifest) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ExtensionManifest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ExtensionManifest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,