Struct vf_rs::vf::Commitment

source ·
pub struct Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> { /* private fields */ }
Expand description

A planned economic flow that has been promised by an agent to another agent.

ID: https://w3id.org/valueflows/ont/vf#Commitment

Implementations§

source§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source

pub fn action_mut(&mut self) -> &mut Action

Defines the kind of flow, such as consume, produce, work, transfer, etc.

source

pub fn at_location_mut(&mut self) -> &mut Option<SpatialThing>

The place where an intent, commitment, or economic event occurs. Usually mappable.

source

pub fn clause_of_mut(&mut self) -> &mut Option<AGREEMENT>

This commitment is a primary part of the agreement.

source

pub fn created_mut(&mut self) -> &mut Option<DateTime<Utc>>

source

pub fn due_mut(&mut self) -> &mut Option<DateTime<Utc>>

The time something is expected to be complete.

source

pub fn effort_quantity_mut(&mut self) -> &mut Option<Measure>

The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.

source

pub fn finished_mut(&mut self) -> &mut Option<bool>

The commitment or intent or process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.

source

pub fn has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>

The planned or actual beginning of a flow or process.

source

pub fn has_end_mut(&mut self) -> &mut Option<DateTime<Utc>>

The planned or actual end of a flow or process.

source

pub fn has_point_in_time_mut(&mut self) -> &mut Option<DateTime<Utc>>

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

source

pub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

pub fn independent_demand_of_mut(&mut self) -> &mut Option<PLAN>

Represents a desired deliverable expected from this plan.

source

pub fn input_of_mut(&mut self) -> &mut Option<PROCESS>

Relates an input flow to its process.

source

pub fn note_mut(&mut self) -> &mut Option<String>

source

pub fn output_of_mut(&mut self) -> &mut Option<PROCESS>

Relates an output flow to its process.

source

pub fn planned_within_mut(&mut self) -> &mut Option<PLAN>

The non-process commitment/intent or process with its inputs and outputs is part of the plan.

source

pub fn provider_mut(&mut self) -> &mut AGENT

The economic agent from whom the intended, committed, or actual economic event is initiated.

source

pub fn receiver_mut(&mut self) -> &mut AGENT

The economic agent whom the intended, committed, or actual economic event is for.

source

pub fn reciprocal_clause_of_mut(&mut self) -> &mut Option<AGREEMENT>

This commitment is a reciprocal part of the agreement.

source

pub fn resource_classified_as_mut(&mut self) -> &mut Vec<RESOURCECLASSIFIEDAS>

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

source

pub fn resource_conforms_to_mut(&mut self) -> &mut Option<RESOURCESPECIFICATION>

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

source

pub fn resource_inventoried_as_mut(&mut self) -> &mut Option<ECONOMICRESOURCE>

Economic resource involved in the flow.

source

pub fn resource_quantity_mut(&mut self) -> &mut Option<Measure>

The amount and unit of the economic resource counted or inventoried.

source

pub fn satisfies_mut(&mut self) -> &mut Option<INTENT>

An intent satisfied fully or partially by an economic event or commitment.

source

pub fn stage_mut(&mut self) -> &mut Option<PROCESSSPECIFICATION>

References the ProcessSpecification of the last process the economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.

source

pub fn state_mut(&mut self) -> &mut Option<String>

The state of the desired economic resource, after coming out of a test or review process.

source§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source

pub fn set_action(&mut self, val: Action) -> &mut Self

Defines the kind of flow, such as consume, produce, work, transfer, etc.

source

pub fn set_at_location(&mut self, val: Option<SpatialThing>) -> &mut Self

The place where an intent, commitment, or economic event occurs. Usually mappable.

source

pub fn set_clause_of(&mut self, val: Option<AGREEMENT>) -> &mut Self

This commitment is a primary part of the agreement.

source

pub fn set_created(&mut self, val: Option<DateTime<Utc>>) -> &mut Self

source

pub fn set_due(&mut self, val: Option<DateTime<Utc>>) -> &mut Self

The time something is expected to be complete.

source

pub fn set_effort_quantity(&mut self, val: Option<Measure>) -> &mut Self

The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.

source

pub fn set_finished(&mut self, val: Option<bool>) -> &mut Self

The commitment or intent or process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.

source

pub fn set_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self

The planned or actual beginning of a flow or process.

source

pub fn set_has_end(&mut self, val: Option<DateTime<Utc>>) -> &mut Self

The planned or actual end of a flow or process.

source

pub fn set_has_point_in_time(&mut self, val: Option<DateTime<Utc>>) -> &mut Self

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

source

pub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self

In the context of an agent, a grouping generally used for accounting, reporting.

source

pub fn set_independent_demand_of(&mut self, val: Option<PLAN>) -> &mut Self

Represents a desired deliverable expected from this plan.

source

pub fn set_input_of(&mut self, val: Option<PROCESS>) -> &mut Self

Relates an input flow to its process.

source

pub fn set_note(&mut self, val: Option<String>) -> &mut Self

source

pub fn set_output_of(&mut self, val: Option<PROCESS>) -> &mut Self

Relates an output flow to its process.

source

pub fn set_planned_within(&mut self, val: Option<PLAN>) -> &mut Self

The non-process commitment/intent or process with its inputs and outputs is part of the plan.

source

pub fn set_provider(&mut self, val: AGENT) -> &mut Self

The economic agent from whom the intended, committed, or actual economic event is initiated.

source

pub fn set_receiver(&mut self, val: AGENT) -> &mut Self

The economic agent whom the intended, committed, or actual economic event is for.

source

pub fn set_reciprocal_clause_of(&mut self, val: Option<AGREEMENT>) -> &mut Self

This commitment is a reciprocal part of the agreement.

source

pub fn set_resource_classified_as( &mut self, val: Vec<RESOURCECLASSIFIEDAS> ) -> &mut Self

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

source

pub fn set_resource_conforms_to( &mut self, val: Option<RESOURCESPECIFICATION> ) -> &mut Self

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

source

pub fn set_resource_inventoried_as( &mut self, val: Option<ECONOMICRESOURCE> ) -> &mut Self

Economic resource involved in the flow.

source

pub fn set_resource_quantity(&mut self, val: Option<Measure>) -> &mut Self

The amount and unit of the economic resource counted or inventoried.

source

pub fn set_satisfies(&mut self, val: Option<INTENT>) -> &mut Self

An intent satisfied fully or partially by an economic event or commitment.

source

pub fn set_stage(&mut self, val: Option<PROCESSSPECIFICATION>) -> &mut Self

References the ProcessSpecification of the last process the economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.

source

pub fn set_state(&mut self, val: Option<String>) -> &mut Self

The state of the desired economic resource, after coming out of a test or review process.

source§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source

pub fn action(&self) -> &Action

Defines the kind of flow, such as consume, produce, work, transfer, etc.

source

pub fn at_location(&self) -> &Option<SpatialThing>

The place where an intent, commitment, or economic event occurs. Usually mappable.

source

pub fn clause_of(&self) -> &Option<AGREEMENT>

This commitment is a primary part of the agreement.

source

pub fn created(&self) -> &Option<DateTime<Utc>>

source

pub fn due(&self) -> &Option<DateTime<Utc>>

The time something is expected to be complete.

source

pub fn effort_quantity(&self) -> &Option<Measure>

The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.

source

pub fn finished(&self) -> &Option<bool>

The commitment or intent or process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.

source

pub fn has_beginning(&self) -> &Option<DateTime<Utc>>

The planned or actual beginning of a flow or process.

source

pub fn has_end(&self) -> &Option<DateTime<Utc>>

The planned or actual end of a flow or process.

source

pub fn has_point_in_time(&self) -> &Option<DateTime<Utc>>

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

source

pub fn in_scope_of(&self) -> &Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

pub fn independent_demand_of(&self) -> &Option<PLAN>

Represents a desired deliverable expected from this plan.

source

pub fn input_of(&self) -> &Option<PROCESS>

Relates an input flow to its process.

source

pub fn note(&self) -> &Option<String>

source

pub fn output_of(&self) -> &Option<PROCESS>

Relates an output flow to its process.

source

pub fn planned_within(&self) -> &Option<PLAN>

The non-process commitment/intent or process with its inputs and outputs is part of the plan.

source

pub fn provider(&self) -> &AGENT

The economic agent from whom the intended, committed, or actual economic event is initiated.

source

pub fn receiver(&self) -> &AGENT

The economic agent whom the intended, committed, or actual economic event is for.

source

pub fn reciprocal_clause_of(&self) -> &Option<AGREEMENT>

This commitment is a reciprocal part of the agreement.

source

pub fn resource_classified_as(&self) -> &Vec<RESOURCECLASSIFIEDAS>

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

source

pub fn resource_conforms_to(&self) -> &Option<RESOURCESPECIFICATION>

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

source

pub fn resource_inventoried_as(&self) -> &Option<ECONOMICRESOURCE>

Economic resource involved in the flow.

source

pub fn resource_quantity(&self) -> &Option<Measure>

The amount and unit of the economic resource counted or inventoried.

source

pub fn satisfies(&self) -> &Option<INTENT>

An intent satisfied fully or partially by an economic event or commitment.

source

pub fn stage(&self) -> &Option<PROCESSSPECIFICATION>

References the ProcessSpecification of the last process the economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.

source

pub fn state(&self) -> &Option<String>

The state of the desired economic resource, after coming out of a test or review process.

source§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source

pub fn builder( ) -> CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

Create an empty builder object for Commitment

source

pub fn into_builder( self ) -> CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

Turns Commitment into CommitmentBuilder

Trait Implementations§

source§

impl<AGREEMENT: Clone, AGENT: Clone, PLAN: Clone, PROCESS: Clone, RESOURCECLASSIFIEDAS: Clone, RESOURCESPECIFICATION: Clone, ECONOMICRESOURCE: Clone, INTENT: Clone, PROCESSSPECIFICATION: Clone> Clone for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source§

fn clone( &self ) -> Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

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<AGREEMENT: Debug, AGENT: Debug, PLAN: Debug, PROCESS: Debug, RESOURCECLASSIFIEDAS: Debug, RESOURCESPECIFICATION: Debug, ECONOMICRESOURCE: Debug, INTENT: Debug, PROCESSSPECIFICATION: Debug> Debug for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source§

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

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

impl<'de, AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Deserialize<'de> for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGREEMENT: Deserialize<'de>, AGENT: Deserialize<'de>, PLAN: Deserialize<'de>, PROCESS: Deserialize<'de>, RESOURCECLASSIFIEDAS: Deserialize<'de>, RESOURCESPECIFICATION: Deserialize<'de>, ECONOMICRESOURCE: Deserialize<'de>, INTENT: Deserialize<'de>, PROCESSSPECIFICATION: Deserialize<'de>,

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<AGREEMENT: PartialEq, AGENT: PartialEq, PLAN: PartialEq, PROCESS: PartialEq, RESOURCECLASSIFIEDAS: PartialEq, RESOURCESPECIFICATION: PartialEq, ECONOMICRESOURCE: PartialEq, INTENT: PartialEq, PROCESSSPECIFICATION: PartialEq> PartialEq for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source§

fn eq( &self, other: &Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> ) -> 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<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Serialize for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGREEMENT: Serialize, AGENT: Serialize, PLAN: Serialize, PROCESS: Serialize, RESOURCECLASSIFIEDAS: Serialize, RESOURCESPECIFICATION: Serialize, ECONOMICRESOURCE: Serialize, INTENT: Serialize, PROCESSSPECIFICATION: Serialize,

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<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> StructuralPartialEq for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

Auto Trait Implementations§

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Freeze for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Freeze, AGREEMENT: Freeze, ECONOMICRESOURCE: Freeze, INTENT: Freeze, PLAN: Freeze, PROCESS: Freeze, PROCESSSPECIFICATION: Freeze, RESOURCESPECIFICATION: Freeze,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> RefUnwindSafe for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: RefUnwindSafe, AGREEMENT: RefUnwindSafe, ECONOMICRESOURCE: RefUnwindSafe, INTENT: RefUnwindSafe, PLAN: RefUnwindSafe, PROCESS: RefUnwindSafe, PROCESSSPECIFICATION: RefUnwindSafe, RESOURCECLASSIFIEDAS: RefUnwindSafe, RESOURCESPECIFICATION: RefUnwindSafe,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Send for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Send, AGREEMENT: Send, ECONOMICRESOURCE: Send, INTENT: Send, PLAN: Send, PROCESS: Send, PROCESSSPECIFICATION: Send, RESOURCECLASSIFIEDAS: Send, RESOURCESPECIFICATION: Send,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Sync for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Sync, AGREEMENT: Sync, ECONOMICRESOURCE: Sync, INTENT: Sync, PLAN: Sync, PROCESS: Sync, PROCESSSPECIFICATION: Sync, RESOURCECLASSIFIEDAS: Sync, RESOURCESPECIFICATION: Sync,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Unpin for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Unpin, AGREEMENT: Unpin, ECONOMICRESOURCE: Unpin, INTENT: Unpin, PLAN: Unpin, PROCESS: Unpin, PROCESSSPECIFICATION: Unpin, RESOURCECLASSIFIEDAS: Unpin, RESOURCESPECIFICATION: Unpin,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> UnwindSafe for Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: UnwindSafe, AGREEMENT: UnwindSafe, ECONOMICRESOURCE: UnwindSafe, INTENT: UnwindSafe, PLAN: UnwindSafe, PROCESS: UnwindSafe, PROCESSSPECIFICATION: UnwindSafe, RESOURCECLASSIFIEDAS: UnwindSafe, RESOURCESPECIFICATION: 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> ToOwned for T
where 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 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.
source§

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