pub struct ExchangeRelation { /* private fields */ }Implementations§
Source§impl ExchangeRelation
impl ExchangeRelation
pub fn kinds<T>(self, value: T) -> ExchangeRelationwhere
T: TryInto<Option<Vec<ExchangeRelationKindsItem>>>,
<T as TryInto<Option<Vec<ExchangeRelationKindsItem>>>>::Error: Display,
pub fn metadata<T>(self, value: T) -> ExchangeRelation
pub fn relation<T>(self, value: T) -> ExchangeRelation
Trait Implementations§
Source§impl Clone for ExchangeRelation
impl Clone for ExchangeRelation
Source§fn clone(&self) -> ExchangeRelation
fn clone(&self) -> ExchangeRelation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeRelation
impl Debug for ExchangeRelation
Source§impl Default for ExchangeRelation
impl Default for ExchangeRelation
Source§fn default() -> ExchangeRelation
fn default() -> ExchangeRelation
Returns the “default value” for a type. Read more
Source§impl From<ExchangeRelation> for ExchangeRelation
impl From<ExchangeRelation> for ExchangeRelation
Source§fn from(value: ExchangeRelation) -> ExchangeRelation
fn from(value: ExchangeRelation) -> ExchangeRelation
Converts to this type from the input type.
Source§impl TryFrom<ExchangeRelation> for ExchangeRelation
impl TryFrom<ExchangeRelation> for ExchangeRelation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExchangeRelation,
) -> Result<ExchangeRelation, ConversionError>
fn try_from( value: ExchangeRelation, ) -> Result<ExchangeRelation, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ExchangeRelation
impl Freeze for ExchangeRelationwhere
*const u8 is !null: Freeze,
PhantomData<ExchangeRelationKindsItem>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Value>: Freeze,
impl Move for ExchangeRelation
impl RefUnwindSafe for ExchangeRelation
impl Send for ExchangeRelation
impl Sync for ExchangeRelation
impl Unpin for ExchangeRelation
impl UnsafeUnpin for ExchangeRelationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ExchangeRelationKindsItem>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for ExchangeRelation
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