[−][src]Struct wascc_codec::capabilities::CapabilityDescriptorBuilder
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]
self,
name: &str,
direction: OperationDirection,
doctext: &str
) -> Self
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
Auto Trait Implementations
impl RefUnwindSafe for CapabilityDescriptorBuilder
impl Send for CapabilityDescriptorBuilder
impl Sync for CapabilityDescriptorBuilder
impl Unpin for CapabilityDescriptorBuilder
impl UnwindSafe for CapabilityDescriptorBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,