pub struct BaseBox(/* private fields */);
Expand description
A wrapper type around a generic Base
Implementations§
Source§impl BaseBox
impl BaseBox
Sourcepub fn from_concrete<T>(t: T) -> Result<Self, Error>
pub fn from_concrete<T>(t: T) -> Result<Self, Error>
Coerce a concrete type into this wrapper type
This is done automatically via TryFrom in proprties setter methods
Sourcepub fn into_concrete<T>(self) -> Result<T, Error>where
T: Base + DeserializeOwned,
pub fn into_concrete<T>(self) -> Result<T, Error>where
T: Base + DeserializeOwned,
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
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BaseBox
impl<'de> Deserialize<'de> for BaseBox
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl From<BaseBox> for ActivityPropertiesInstrumentTermEnum
Source§fn from(item: BaseBox) -> ActivityPropertiesInstrumentTermEnum
fn from(item: BaseBox) -> ActivityPropertiesInstrumentTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActivityPropertiesResultTermEnum
impl From<BaseBox> for ActivityPropertiesResultTermEnum
Source§fn from(item: BaseBox) -> ActivityPropertiesResultTermEnum
fn from(item: BaseBox) -> ActivityPropertiesResultTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptOriginPropertiesActorTermEnum
impl From<BaseBox> for ActorAndObjectOptOriginPropertiesActorTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesActorTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesActorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptOriginPropertiesObjectTermEnum
impl From<BaseBox> for ActorAndObjectOptOriginPropertiesObjectTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesObjectTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesObjectTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptOriginPropertiesOriginTermEnum
impl From<BaseBox> for ActorAndObjectOptOriginPropertiesOriginTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesOriginTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptOriginPropertiesOriginTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptOthersPropertiesActorTermEnum
impl From<BaseBox> for ActorAndObjectOptOthersPropertiesActorTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesActorTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesActorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptOthersPropertiesObjectTermEnum
impl From<BaseBox> for ActorAndObjectOptOthersPropertiesObjectTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesObjectTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesObjectTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptOthersPropertiesOriginTermEnum
impl From<BaseBox> for ActorAndObjectOptOthersPropertiesOriginTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesOriginTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesOriginTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptOthersPropertiesTargetTermEnum
impl From<BaseBox> for ActorAndObjectOptOthersPropertiesTargetTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesTargetTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptOthersPropertiesTargetTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptTargetPropertiesActorTermEnum
impl From<BaseBox> for ActorAndObjectOptTargetPropertiesActorTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesActorTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesActorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptTargetPropertiesObjectTermEnum
impl From<BaseBox> for ActorAndObjectOptTargetPropertiesObjectTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesObjectTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesObjectTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectOptTargetPropertiesTargetTermEnum
impl From<BaseBox> for ActorAndObjectOptTargetPropertiesTargetTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesTargetTermEnum
fn from(item: BaseBox) -> ActorAndObjectOptTargetPropertiesTargetTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectPropertiesActorTermEnum
impl From<BaseBox> for ActorAndObjectPropertiesActorTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectPropertiesActorTermEnum
fn from(item: BaseBox) -> ActorAndObjectPropertiesActorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndObjectPropertiesObjectTermEnum
impl From<BaseBox> for ActorAndObjectPropertiesObjectTermEnum
Source§fn from(item: BaseBox) -> ActorAndObjectPropertiesObjectTermEnum
fn from(item: BaseBox) -> ActorAndObjectPropertiesObjectTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndOriginPropertiesActorTermEnum
impl From<BaseBox> for ActorAndOriginPropertiesActorTermEnum
Source§fn from(item: BaseBox) -> ActorAndOriginPropertiesActorTermEnum
fn from(item: BaseBox) -> ActorAndOriginPropertiesActorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorAndOriginPropertiesOriginTermEnum
impl From<BaseBox> for ActorAndOriginPropertiesOriginTermEnum
Source§fn from(item: BaseBox) -> ActorAndOriginPropertiesOriginTermEnum
fn from(item: BaseBox) -> ActorAndOriginPropertiesOriginTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorObjectAndTargetPropertiesActorTermEnum
impl From<BaseBox> for ActorObjectAndTargetPropertiesActorTermEnum
Source§fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesActorTermEnum
fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesActorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorObjectAndTargetPropertiesObjectTermEnum
impl From<BaseBox> for ActorObjectAndTargetPropertiesObjectTermEnum
Source§fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesObjectTermEnum
fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesObjectTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorObjectAndTargetPropertiesTargetTermEnum
impl From<BaseBox> for ActorObjectAndTargetPropertiesTargetTermEnum
Source§fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesTargetTermEnum
fn from(item: BaseBox) -> ActorObjectAndTargetPropertiesTargetTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorOptOriginAndTargetPropertiesActorTermEnum
impl From<BaseBox> for ActorOptOriginAndTargetPropertiesActorTermEnum
Source§fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesActorTermEnum
fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesActorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorOptOriginAndTargetPropertiesOriginTermEnum
impl From<BaseBox> for ActorOptOriginAndTargetPropertiesOriginTermEnum
Source§fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesOriginTermEnum
fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesOriginTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ActorOptOriginAndTargetPropertiesTargetTermEnum
impl From<BaseBox> for ActorOptOriginAndTargetPropertiesTargetTermEnum
Source§fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesTargetTermEnum
fn from(item: BaseBox) -> ActorOptOriginAndTargetPropertiesTargetTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for CollectionPagePropertiesNextEnum
impl From<BaseBox> for CollectionPagePropertiesNextEnum
Source§fn from(item: BaseBox) -> CollectionPagePropertiesNextEnum
fn from(item: BaseBox) -> CollectionPagePropertiesNextEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for CollectionPagePropertiesPartOfEnum
impl From<BaseBox> for CollectionPagePropertiesPartOfEnum
Source§fn from(item: BaseBox) -> CollectionPagePropertiesPartOfEnum
fn from(item: BaseBox) -> CollectionPagePropertiesPartOfEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for CollectionPagePropertiesPrevEnum
impl From<BaseBox> for CollectionPagePropertiesPrevEnum
Source§fn from(item: BaseBox) -> CollectionPagePropertiesPrevEnum
fn from(item: BaseBox) -> CollectionPagePropertiesPrevEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for CollectionPropertiesCurrentEnum
impl From<BaseBox> for CollectionPropertiesCurrentEnum
Source§fn from(item: BaseBox) -> CollectionPropertiesCurrentEnum
fn from(item: BaseBox) -> CollectionPropertiesCurrentEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for CollectionPropertiesFirstEnum
impl From<BaseBox> for CollectionPropertiesFirstEnum
Source§fn from(item: BaseBox) -> CollectionPropertiesFirstEnum
fn from(item: BaseBox) -> CollectionPropertiesFirstEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for CollectionPropertiesItemsTermEnum
impl From<BaseBox> for CollectionPropertiesItemsTermEnum
Source§fn from(item: BaseBox) -> CollectionPropertiesItemsTermEnum
fn from(item: BaseBox) -> CollectionPropertiesItemsTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for CollectionPropertiesLastTermEnum
impl From<BaseBox> for CollectionPropertiesLastTermEnum
Source§fn from(item: BaseBox) -> CollectionPropertiesLastTermEnum
fn from(item: BaseBox) -> CollectionPropertiesLastTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesAttachmentTermEnum
impl From<BaseBox> for ObjectPropertiesAttachmentTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesAttachmentTermEnum
fn from(item: BaseBox) -> ObjectPropertiesAttachmentTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesAttributedToTermEnum
impl From<BaseBox> for ObjectPropertiesAttributedToTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesAttributedToTermEnum
fn from(item: BaseBox) -> ObjectPropertiesAttributedToTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesAudienceTermEnum
impl From<BaseBox> for ObjectPropertiesAudienceTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesAudienceTermEnum
fn from(item: BaseBox) -> ObjectPropertiesAudienceTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesBccTermEnum
impl From<BaseBox> for ObjectPropertiesBccTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesBccTermEnum
fn from(item: BaseBox) -> ObjectPropertiesBccTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesBtoTermEnum
impl From<BaseBox> for ObjectPropertiesBtoTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesBtoTermEnum
fn from(item: BaseBox) -> ObjectPropertiesBtoTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesCcTermEnum
impl From<BaseBox> for ObjectPropertiesCcTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesCcTermEnum
fn from(item: BaseBox) -> ObjectPropertiesCcTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesContextTermEnum
impl From<BaseBox> for ObjectPropertiesContextTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesContextTermEnum
fn from(item: BaseBox) -> ObjectPropertiesContextTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesGeneratorTermEnum
impl From<BaseBox> for ObjectPropertiesGeneratorTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesGeneratorTermEnum
fn from(item: BaseBox) -> ObjectPropertiesGeneratorTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesInReplyToTermEnum
impl From<BaseBox> for ObjectPropertiesInReplyToTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesInReplyToTermEnum
fn from(item: BaseBox) -> ObjectPropertiesInReplyToTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesLocationTermEnum
impl From<BaseBox> for ObjectPropertiesLocationTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesLocationTermEnum
fn from(item: BaseBox) -> ObjectPropertiesLocationTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesPreviewTermEnum
impl From<BaseBox> for ObjectPropertiesPreviewTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesPreviewTermEnum
fn from(item: BaseBox) -> ObjectPropertiesPreviewTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesRepliesTermEnum
impl From<BaseBox> for ObjectPropertiesRepliesTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesRepliesTermEnum
fn from(item: BaseBox) -> ObjectPropertiesRepliesTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesTagTermEnum
impl From<BaseBox> for ObjectPropertiesTagTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesTagTermEnum
fn from(item: BaseBox) -> ObjectPropertiesTagTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for ObjectPropertiesToTermEnum
impl From<BaseBox> for ObjectPropertiesToTermEnum
Source§fn from(item: BaseBox) -> ObjectPropertiesToTermEnum
fn from(item: BaseBox) -> ObjectPropertiesToTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for QuestionPropertiesAnyOfTermEnum
impl From<BaseBox> for QuestionPropertiesAnyOfTermEnum
Source§fn from(item: BaseBox) -> QuestionPropertiesAnyOfTermEnum
fn from(item: BaseBox) -> QuestionPropertiesAnyOfTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for QuestionPropertiesOneOfTermEnum
impl From<BaseBox> for QuestionPropertiesOneOfTermEnum
Source§fn from(item: BaseBox) -> QuestionPropertiesOneOfTermEnum
fn from(item: BaseBox) -> QuestionPropertiesOneOfTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for RelationshipPropertiesObjectTermEnum
impl From<BaseBox> for RelationshipPropertiesObjectTermEnum
Source§fn from(item: BaseBox) -> RelationshipPropertiesObjectTermEnum
fn from(item: BaseBox) -> RelationshipPropertiesObjectTermEnum
Converts to this type from the input type.
Source§impl From<BaseBox> for RelationshipPropertiesSubjectEnum
impl From<BaseBox> for RelationshipPropertiesSubjectEnum
Source§fn from(item: BaseBox) -> RelationshipPropertiesSubjectEnum
fn from(item: BaseBox) -> RelationshipPropertiesSubjectEnum
Converts to this type from the input type.
Source§impl TryFrom<Application> for BaseBox
impl TryFrom<Application> for BaseBox
Source§impl TryFrom<OrderedCollection> for BaseBox
impl TryFrom<OrderedCollection> for BaseBox
Source§impl TryFrom<OrderedCollectionPage> for BaseBox
impl TryFrom<OrderedCollectionPage> for BaseBox
Source§impl TryFrom<Organization> for BaseBox
impl TryFrom<Organization> for BaseBox
Source§impl TryFrom<Relationship> for BaseBox
impl TryFrom<Relationship> for BaseBox
Source§impl TryFrom<TentativeAccept> for BaseBox
impl TryFrom<TentativeAccept> for BaseBox
Source§impl TryFrom<TentativeReject> for BaseBox
impl TryFrom<TentativeReject> for BaseBox
Source§impl TryFrom<UnorderedCollection> for BaseBox
impl TryFrom<UnorderedCollection> for BaseBox
Source§impl TryFrom<UnorderedCollectionPage> for BaseBox
impl TryFrom<UnorderedCollectionPage> for BaseBox
Auto Trait Implementations§
impl Freeze for BaseBox
impl RefUnwindSafe for BaseBox
impl Send for BaseBox
impl Sync for BaseBox
impl Unpin for BaseBox
impl UnwindSafe for BaseBox
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