pub struct ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS> { /* private fields */ }
Expand description

Builder for ResourceSpecification.

Implementations§

source§

impl<RESOURCECLASSIFIEDAS> ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>

source

pub fn default_unit_of_effort<VALUE: Into<Option<Unit>>>( self, value: VALUE ) -> Self

The default unit used for use or work.

source

pub fn default_unit_of_resource<VALUE: Into<Option<Unit>>>( self, value: VALUE ) -> Self

The default unit used for the resource itself.

source

pub fn image<VALUE: Into<Option<Url>>>(self, value: VALUE) -> Self

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

source

pub fn image_list<VALUE: Into<Option<Url>>>(self, value: VALUE) -> Self

A comma separated list of uri addresses to images relevant to the resource.

source

pub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self

An informal or formal textual identifier for an object. Does not imply uniqueness.

source

pub fn note<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self

source

pub fn resource_classified_as<VALUE: Into<Vec<RESOURCECLASSIFIEDAS>>>( self, value: VALUE ) -> Self

References a concept in a common taxonomy or other classification scheme for purposes of categorization or grouping.

source

pub fn substitutable<VALUE: Into<Option<bool>>>(self, value: VALUE) -> Self

Defines if any resource of that type can be freely substituted for any other resource of that type when used, consumed, traded, etc.

source

pub fn build( self ) -> Result<ResourceSpecification<RESOURCECLASSIFIEDAS>, ResourceSpecificationBuilderError>

Builds a new ResourceSpecification.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<RESOURCECLASSIFIEDAS> Default for ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<RESOURCECLASSIFIEDAS> Freeze for ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>

§

impl<RESOURCECLASSIFIEDAS> RefUnwindSafe for ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>
where RESOURCECLASSIFIEDAS: RefUnwindSafe,

§

impl<RESOURCECLASSIFIEDAS> Send for ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>
where RESOURCECLASSIFIEDAS: Send,

§

impl<RESOURCECLASSIFIEDAS> Sync for ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>
where RESOURCECLASSIFIEDAS: Sync,

§

impl<RESOURCECLASSIFIEDAS> Unpin for ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>
where RESOURCECLASSIFIEDAS: Unpin,

§

impl<RESOURCECLASSIFIEDAS> UnwindSafe for ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>
where RESOURCECLASSIFIEDAS: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where 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, U> TryFrom<U> for T
where 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 T
where 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.