[][src]Struct wascc_codec::capabilities::CapabilityDescriptorBuilder

pub struct CapabilityDescriptorBuilder { /* fields omitted */ }

A fluent syntax builder for creating a capability descriptor

Implementations

impl CapabilityDescriptorBuilder[src]

pub fn id(self, id: &str) -> Self[src]

Sets the capability ID (e.g. wascc:messaging) of the provider

pub fn name(self, name: &str) -> Self[src]

Sets the name of the capability provider.

pub fn long_description(self, desc: &str) -> Self[src]

Sets a longer, documentation-friendly description of the provider

pub fn version(self, ver: &str) -> Self[src]

Sets the version string (semver by convention) of the provider

pub fn revision(self, rev: u32) -> Self[src]

Sets the monotonically increasing, numeric revision number of a provider. Used when comparing provider versions

pub fn with_operation(
    self,
    name: &str,
    direction: OperationDirection,
    doctext: &str
) -> Self
[src]

Adds an operation descriptor to the provider descriptor.

pub fn build(self) -> CapabilityDescriptor[src]

Produces a new capability descriptor from the builder's configuration

Trait Implementations

impl Default for CapabilityDescriptorBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.