Struct BaseBox

Source
pub struct BaseBox(/* private fields */);
Expand description

A wrapper type around a generic Base

Implementations§

Source§

impl BaseBox

Source

pub fn from_concrete<T>(t: T) -> Result<Self, Error>
where T: Base + Serialize,

Coerce a concrete type into this wrapper type

This is done automatically via TryFrom in proprties setter methods

Source

pub fn into_concrete<T>(self) -> Result<T, Error>

Attempt to deserialize the wrapper type to a concrete type

Before this method is called, the type should be verified via the kind or is_kind methods

Source

pub fn is_kind(&self, kind: impl Display) -> bool

Return whether the given wrapper type is expected.

For example

use activitystreams::object::{
    kind::ImageType,
    apub::Image,
};
if my_wrapper_type.is_kind(ImageType) {
    let image = my_wrapper_type.into_concrete::<Image>()?;
    ...
}
Source

pub fn kind(&self) -> Option<&str>

Return the kind of wrapper type, if present

Example

match my_wrapper_type.kind() {
    Some("Image") => {
        let image = my_wrapper_type.into_concrete::<Image>()?;
        ...
    }
    _ => ...,
}

Trait Implementations§

Source§

impl Clone for BaseBox

Source§

fn clone(&self) -> BaseBox

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 Debug for BaseBox

Source§

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

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

impl<'de> Deserialize<'de> for BaseBox

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 From<BaseBox> for ActivityPropertiesInstrumentTermEnum

Source§

fn from(item: BaseBox) -> ActivityPropertiesInstrumentTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActivityPropertiesResultTermEnum

Source§

fn from(item: BaseBox) -> ActivityPropertiesResultTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptOriginPropertiesActorTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesActorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptOriginPropertiesObjectTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesObjectTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptOriginPropertiesOriginTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesOriginTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptOthersPropertiesActorTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesActorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptOthersPropertiesObjectTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesObjectTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptOthersPropertiesOriginTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesOriginTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptOthersPropertiesTargetTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesTargetTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptTargetPropertiesActorTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesActorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptTargetPropertiesObjectTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesObjectTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectOptTargetPropertiesTargetTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesTargetTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectPropertiesActorTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectPropertiesActorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndObjectPropertiesObjectTermEnum

Source§

fn from(item: BaseBox) -> ActorAndObjectPropertiesObjectTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndOriginPropertiesActorTermEnum

Source§

fn from(item: BaseBox) -> ActorAndOriginPropertiesActorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorAndOriginPropertiesOriginTermEnum

Source§

fn from(item: BaseBox) -> ActorAndOriginPropertiesOriginTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorObjectAndTargetPropertiesActorTermEnum

Source§

fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesActorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorObjectAndTargetPropertiesObjectTermEnum

Source§

fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesObjectTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorObjectAndTargetPropertiesTargetTermEnum

Source§

fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesTargetTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorOptOriginAndTargetPropertiesActorTermEnum

Source§

fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesActorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorOptOriginAndTargetPropertiesOriginTermEnum

Source§

fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesOriginTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ActorOptOriginAndTargetPropertiesTargetTermEnum

Source§

fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesTargetTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for CollectionPagePropertiesNextEnum

Source§

fn from(item: BaseBox) -> CollectionPagePropertiesNextEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for CollectionPagePropertiesPartOfEnum

Source§

fn from(item: BaseBox) -> CollectionPagePropertiesPartOfEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for CollectionPagePropertiesPrevEnum

Source§

fn from(item: BaseBox) -> CollectionPagePropertiesPrevEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for CollectionPropertiesCurrentEnum

Source§

fn from(item: BaseBox) -> CollectionPropertiesCurrentEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for CollectionPropertiesFirstEnum

Source§

fn from(item: BaseBox) -> CollectionPropertiesFirstEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for CollectionPropertiesItemsTermEnum

Source§

fn from(item: BaseBox) -> CollectionPropertiesItemsTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for CollectionPropertiesLastTermEnum

Source§

fn from(item: BaseBox) -> CollectionPropertiesLastTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesAttachmentTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesAttachmentTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesAttributedToTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesAttributedToTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesAudienceTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesAudienceTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesBccTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesBccTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesBtoTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesBtoTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesCcTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesCcTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesContextTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesContextTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesGeneratorTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesGeneratorTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesInReplyToTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesInReplyToTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesLocationTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesLocationTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesPreviewTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesPreviewTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesRepliesTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesRepliesTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesTagTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesTagTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for ObjectPropertiesToTermEnum

Source§

fn from(item: BaseBox) -> ObjectPropertiesToTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for QuestionPropertiesAnyOfTermEnum

Source§

fn from(item: BaseBox) -> QuestionPropertiesAnyOfTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for QuestionPropertiesOneOfTermEnum

Source§

fn from(item: BaseBox) -> QuestionPropertiesOneOfTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for RelationshipPropertiesObjectTermEnum

Source§

fn from(item: BaseBox) -> RelationshipPropertiesObjectTermEnum

Converts to this type from the input type.
Source§

impl From<BaseBox> for RelationshipPropertiesSubjectEnum

Source§

fn from(item: BaseBox) -> RelationshipPropertiesSubjectEnum

Converts to this type from the input type.
Source§

impl Serialize for BaseBox

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 TryFrom<AMove> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: AMove) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Accept> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Accept) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Add> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Add) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Announce> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Announce) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Application> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Application) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Arrive> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Arrive) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Article> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Article) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Audio> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Audio) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Block> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Block) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Create> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Create) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Delete> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Delete) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Dislike> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Dislike) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Document> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Document) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Event> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Event) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T, U> TryFrom<Ext<T, U>> for BaseBox
where T: Base + Serialize, U: Extension<T> + Serialize + Debug,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(e: Ext<T, U>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Flag> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Flag) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Follow> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Follow) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Group> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Group) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Ignore> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Ignore) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Image> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Image) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Invite> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Invite) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Join> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Join) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Leave> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Leave) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Like> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Like) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Listen> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Listen) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Mention> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Mention) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Note> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Note) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Offer> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Offer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<OrderedCollection> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: OrderedCollection) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<OrderedCollectionPage> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: OrderedCollectionPage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Organization> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Organization) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Page> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Page) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Person> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Person) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Place> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Place) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Profile> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Profile) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Question> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Question) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Read> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Read) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Reject> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Reject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Relationship> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Relationship) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Remove> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Remove) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Service> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Service) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<TentativeAccept> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: TentativeAccept) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<TentativeReject> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: TentativeReject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Tombstone> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Tombstone) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Travel> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Travel) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Undo> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Undo) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnorderedCollection> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: UnorderedCollection) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnorderedCollectionPage> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: UnorderedCollectionPage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Video> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Video) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<View> for BaseBox

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: View) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

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>,

Source§

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>,