Struct vf_rs::vf::builders::ResourceSpecificationBuilder
source · pub struct ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS> { /* private fields */ }
Expand description
Builder for ResourceSpecification
.
Implementations§
source§impl<RESOURCECLASSIFIEDAS> ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>
impl<RESOURCECLASSIFIEDAS> ResourceSpecificationBuilder<RESOURCECLASSIFIEDAS>
sourcepub fn default_unit_of_effort<VALUE: Into<Option<Unit>>>(
self,
value: VALUE
) -> Self
pub fn default_unit_of_effort<VALUE: Into<Option<Unit>>>( self, value: VALUE ) -> Self
The default unit used for use or work.
sourcepub fn default_unit_of_resource<VALUE: Into<Option<Unit>>>(
self,
value: VALUE
) -> Self
pub fn default_unit_of_resource<VALUE: Into<Option<Unit>>>( self, value: VALUE ) -> Self
The default unit used for the resource itself.
sourcepub fn image<VALUE: Into<Option<Url>>>(self, value: VALUE) -> Self
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.
sourcepub fn image_list<VALUE: Into<Option<Url>>>(self, value: VALUE) -> Self
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.
sourcepub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn note<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
sourcepub fn resource_classified_as<VALUE: Into<Vec<RESOURCECLASSIFIEDAS>>>(
self,
value: VALUE
) -> Self
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.
sourcepub fn substitutable<VALUE: Into<Option<bool>>>(self, value: VALUE) -> Self
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.
sourcepub fn build(
self
) -> Result<ResourceSpecification<RESOURCECLASSIFIEDAS>, ResourceSpecificationBuilderError>
pub fn build( self ) -> Result<ResourceSpecification<RESOURCECLASSIFIEDAS>, ResourceSpecificationBuilderError>
Trait Implementations§
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> 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