Struct Ext2

Source
pub struct Ext2<Inner, A, B> {
    pub ext_one: A,
    pub ext_two: B,
    pub inner: Inner,
}
Expand description

Extend a type with two values

Fields§

§ext_one: A§ext_two: B§inner: Inner

The type being extended

Implementations§

Source§

impl<Inner, A, B> Ext2<Inner, A, B>

Source

pub fn new(inner: Inner, ext_one: A, ext_two: B) -> Self

Source

pub fn into_parts(self) -> (Inner, A, B)

Source

pub fn extend<C>(self, ext_three: C) -> Ext3<Inner, A, B, C>

Trait Implementations§

Source§

impl<Inner, A, B> AsActivity for Ext2<Inner, A, B>
where Inner: AsActivity,

Source§

type Kind = <Inner as AsActivity>::Kind

Source§

fn activity_ref(&self) -> &Activity<Self::Kind>

Immutable borrow of Activity<Kind>
Source§

fn activity_mut(&mut self) -> &mut Activity<Self::Kind>

Mutable borrow of Activity<Kind>
Source§

impl<Inner, A, B> AsActivityActor for Ext2<Inner, A, B>
where Inner: AsActivityActor,

Source§

impl<Inner, A, B> AsActivityObject for Ext2<Inner, A, B>
where Inner: AsActivityObject,

Source§

impl<Inner, A, B> AsApActor for Ext2<Inner, A, B>
where Inner: AsApActor,

Source§

type Inner = <Inner as AsApActor>::Inner

Source§

fn ap_actor_ref(&self) -> &ApActor<Self::Inner>

Immutable borrow of ApActor<Inner>
Source§

fn ap_actor_mut(&mut self) -> &mut ApActor<Self::Inner>

Mutable borrow of ApActor<Inner>
Source§

impl<Inner, A, B> AsApObject for Ext2<Inner, A, B>
where Inner: AsApObject,

Source§

type Inner = <Inner as AsApObject>::Inner

Source§

fn ap_object_ref(&self) -> &ApObject<Self::Inner>

Immutable borrow of ApObject<Inner>
Source§

fn ap_object_mut(&mut self) -> &mut ApObject<Self::Inner>

Mutable borrow of ApObject<Inner>
Source§

impl<Inner, A, B> AsBase for Ext2<Inner, A, B>
where Inner: AsBase,

Source§

type Kind = <Inner as AsBase>::Kind

Source§

fn base_ref(&self) -> &Base<Self::Kind>

Immutable borrow of Base<Kind>
Source§

fn base_mut(&mut self) -> &mut Base<Self::Kind>

Mutable borrow of Base
Source§

impl<Inner, A, B> AsCollection for Ext2<Inner, A, B>
where Inner: AsCollection,

Source§

type Kind = <Inner as AsCollection>::Kind

Source§

fn collection_ref(&self) -> &Collection<Self::Kind>

Source§

fn collection_mut(&mut self) -> &mut Collection<Self::Kind>

Source§

impl<Inner, A, B> AsCollectionPage for Ext2<Inner, A, B>
where Inner: AsCollectionPage,

Source§

impl<Inner, A, B> AsObject for Ext2<Inner, A, B>
where Inner: AsObject,

Source§

type Kind = <Inner as AsObject>::Kind

Source§

fn object_ref(&self) -> &Object<Self::Kind>

Immutable borrow of Object<Kind>
Source§

fn object_mut(&mut self) -> &mut Object<Self::Kind>

Mutable borrow of Object<Kind>
Source§

impl<Inner, A, B> AsOptOrigin for Ext2<Inner, A, B>
where Inner: AsOptOrigin,

Source§

type Inner = <Inner as AsOptOrigin>::Inner

Source§

fn opt_origin_ref(&self) -> &OptOrigin<Self::Inner>

Source§

fn opt_origin_mut(&mut self) -> &mut OptOrigin<Self::Inner>

Source§

impl<Inner, A, B> AsOptTarget for Ext2<Inner, A, B>
where Inner: AsOptTarget,

Source§

type Inner = <Inner as AsOptTarget>::Inner

Source§

fn opt_target_ref(&self) -> &OptTarget<Self::Inner>

Source§

fn opt_target_mut(&mut self) -> &mut OptTarget<Self::Inner>

Source§

impl<Inner, A, B> AsOrigin for Ext2<Inner, A, B>
where Inner: AsOrigin,

Source§

type Inner = <Inner as AsOrigin>::Inner

Source§

fn origin_ref(&self) -> &Origin<Self::Inner>

Source§

fn origin_mut(&mut self) -> &mut Origin<Self::Inner>

Source§

impl<Inner, A, B> AsQuestion for Ext2<Inner, A, B>
where Inner: AsQuestion,

Source§

fn question_ref(&self) -> &Question

Immutable borrow of Question
Source§

fn question_mut(&mut self) -> &mut Question

Mutable borrow of Question
Source§

impl<Inner, A, B> AsTarget for Ext2<Inner, A, B>
where Inner: AsTarget,

Source§

type Inner = <Inner as AsTarget>::Inner

Source§

fn target_ref(&self) -> &Target<Self::Inner>

Source§

fn target_mut(&mut self) -> &mut Target<Self::Inner>

Source§

impl<Inner: Clone, A: Clone, B: Clone> Clone for Ext2<Inner, A, B>

Source§

fn clone(&self) -> Ext2<Inner, A, B>

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Inner: Debug, A: Debug, B: Debug> Debug for Ext2<Inner, A, B>

Source§

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

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

impl<'de, Inner, A, B> Deserialize<'de> for Ext2<Inner, A, B>
where Inner: Deserialize<'de>, A: Deserialize<'de>, B: 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<Inner, A, B, Error> Extends for Ext2<Inner, A, B>
where Inner: Extends<Error = Error> + UnparsedMut, A: UnparsedExtension<Inner, Error = Error>, B: UnparsedExtension<Inner, Error = Error>, Error: From<Error> + Error,

Source§

type Kind = <Inner as Extends>::Kind

Source§

type Error = Error

The erro produced must be a StdError
Source§

fn extends(base: Base<Self::Kind>) -> Result<Self, Self::Error>

Produce an object from the Base
Source§

fn retracts(self) -> Result<Base<Self::Kind>, Self::Error>

Produce a base from the object
Source§

impl<Inner, A, B> Serialize for Ext2<Inner, A, B>
where Inner: Serialize, A: Serialize, B: 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<Inner, A, B> Activity for Ext2<Inner, A, B>
where Inner: Activity,

Source§

impl<Inner, A, B> Actor for Ext2<Inner, A, B>
where Inner: Actor,

Source§

impl<Inner, A, B> Base for Ext2<Inner, A, B>
where Inner: Base,

Source§

impl<Inner, A, B> Collection for Ext2<Inner, A, B>
where Inner: Collection,

Source§

impl<Inner, A, B> CollectionPage for Ext2<Inner, A, B>
where Inner: CollectionPage,

Source§

impl<Inner, A, B> IntransitiveActivity for Ext2<Inner, A, B>
where Inner: IntransitiveActivity,

Source§

impl<Inner, A, B> Object for Ext2<Inner, A, B>
where Inner: Object,

Auto Trait Implementations§

§

impl<Inner, A, B> Freeze for Ext2<Inner, A, B>
where A: Freeze, B: Freeze, Inner: Freeze,

§

impl<Inner, A, B> RefUnwindSafe for Ext2<Inner, A, B>

§

impl<Inner, A, B> Send for Ext2<Inner, A, B>
where A: Send, B: Send, Inner: Send,

§

impl<Inner, A, B> Sync for Ext2<Inner, A, B>
where A: Sync, B: Sync, Inner: Sync,

§

impl<Inner, A, B> Unpin for Ext2<Inner, A, B>
where A: Unpin, B: Unpin, Inner: Unpin,

§

impl<Inner, A, B> UnwindSafe for Ext2<Inner, A, B>
where A: UnwindSafe, B: UnwindSafe, Inner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> ActivityExt for T
where T: AsActivity,

Source§

fn result<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the result for the current activity Read more
Source§

fn set_result<T>(&mut self, result: T) -> &mut Self
where T: Into<AnyBase>,

Set the result for the current activity Read more
Source§

fn set_many_results<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many results for the current activity Read more
Source§

fn add_result<T>(&mut self, result: T) -> &mut Self
where T: Into<AnyBase>,

Add a result to the current activity Read more
Source§

fn take_result(&mut self) -> Option<OneOrMany<AnyBase>>

Take the result from the current activity, leaving nothing Read more
Source§

fn delete_result(&mut self) -> &mut Self

Delete the result from the current activity Read more
Source§

fn instrument<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the instrument for the current activity Read more
Source§

fn set_instrument<T>(&mut self, instrument: T) -> &mut Self
where T: Into<AnyBase>,

Set the instrument for the current activity Read more
Source§

fn set_many_instruments<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many instruments for the current activity Read more
Source§

fn add_instrument<T>(&mut self, instrument: T) -> &mut Self
where T: Into<AnyBase>,

Add a instrument to the current activity Read more
Source§

fn take_instrument(&mut self) -> Option<OneOrMany<AnyBase>>

Take the instrument from the current activity, leaving nothing Read more
Source§

fn delete_instrument(&mut self) -> &mut Self

Delete the instrument from the current activity Read more
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> ApActorExt for T
where T: AsApActor,

Source§

fn inbox<'a>(&'a self) -> Result<&'a RiString<IriSpec>, CheckError>
where Self::Inner: 'a, Self: BaseExt,

Fetch the inbox for the current actor Read more
Source§

fn inbox_unchecked<'a>(&'a self) -> &'a RiString<IriSpec>
where Self::Inner: 'a,

Fetch the inbox for the current actor Read more
Source§

fn inbox_mut<'a>(&'a mut self) -> &'a mut RiString<IriSpec>
where Self::Inner: 'a,

Fetch a mutable referece to the current actor’s inbox Read more
Source§

fn set_inbox(&mut self, inbox: RiString<IriSpec>) -> &mut Self

Set the inbox for the current actor Read more
Source§

fn outbox<'a>(&'a self) -> Result<Option<&'a RiString<IriSpec>>, CheckError>
where Self::Inner: 'a, Self: BaseExt,

Fetch the outbox for the current actor Read more
Source§

fn outbox_unchecked<'a>(&'a self) -> Option<&'a RiString<IriSpec>>
where Self::Inner: 'a,

Fetch the outbox for the current actor Read more
Source§

fn outbox_mut<'a>(&'a mut self) -> Option<&'a mut RiString<IriSpec>>
where Self::Inner: 'a,

Mutably fetch the outbox for the current actor Read more
Source§

fn set_outbox(&mut self, outbox: RiString<IriSpec>) -> &mut Self

Set the outbox for the current actor Read more
Source§

fn take_outbox(&mut self) -> Option<RiString<IriSpec>>

Take the outbox from the current actor, leaving nothing Read more
Source§

fn delete_outbox(&mut self) -> &mut Self

Delete the outbox from the current object Read more
Source§

fn following<'a>(&'a self) -> Result<Option<&'a RiString<IriSpec>>, CheckError>
where Self::Inner: 'a, Self: BaseExt,

Fetch the following link for the current actor Read more
Source§

fn following_unchecked<'a>(&'a self) -> Option<&'a RiString<IriSpec>>
where Self::Inner: 'a,

Fetch the following link for the current actor Read more
Source§

fn following_mut<'a>(&'a mut self) -> Option<&'a mut RiString<IriSpec>>
where Self::Inner: 'a,

Mutably fetch the following link for the current actor Read more
Source§

fn set_following(&mut self, following: RiString<IriSpec>) -> &mut Self

Set the following link for the current actor Read more
Source§

fn take_following(&mut self) -> Option<RiString<IriSpec>>

Take the following link from the current actor, leaving nothing Read more
Source§

fn delete_following(&mut self) -> &mut Self

Delete the following link from the current object Read more
Source§

fn followers<'a>(&'a self) -> Result<Option<&'a RiString<IriSpec>>, CheckError>
where Self::Inner: 'a, Self: BaseExt,

Fetch the followers link for the current actor Read more
Source§

fn followers_unchecked<'a>(&'a self) -> Option<&'a RiString<IriSpec>>
where Self::Inner: 'a,

Fetch the followers link for the current actor Read more
Source§

fn followers_mut<'a>(&'a mut self) -> Option<&'a mut RiString<IriSpec>>
where Self::Inner: 'a,

Mutably fetch the followers link for the current actor Read more
Source§

fn set_followers(&mut self, followers: RiString<IriSpec>) -> &mut Self

Set the followers link for the current actor Read more
Source§

fn take_followers(&mut self) -> Option<RiString<IriSpec>>

Take the followers link from the current actor, leaving nothing Read more
Source§

fn delete_followers(&mut self) -> &mut Self

Delete the followers link from the current object Read more
Source§

fn liked<'a>(&'a self) -> Result<Option<&'a RiString<IriSpec>>, CheckError>
where Self::Inner: 'a, Self: BaseExt,

Fetch the liked link for the current actor Read more
Source§

fn liked_unchecked<'a>(&'a self) -> Option<&'a RiString<IriSpec>>
where Self::Inner: 'a,

Fetch the liked link for the current actor Read more
Source§

fn liked_mut<'a>(&'a mut self) -> Option<&'a mut RiString<IriSpec>>
where Self::Inner: 'a,

Mutably fetch the liked link for the current actor Read more
Source§

fn set_liked(&mut self, liked: RiString<IriSpec>) -> &mut Self

Set the liked link for the current actor Read more
Source§

fn take_liked(&mut self) -> Option<RiString<IriSpec>>

Take the liked link from the current actor, leaving nothing Read more
Source§

fn delete_liked(&mut self) -> &mut Self

Delete the liked link from the current object Read more
Source§

fn streams<'a>( &'a self, ) -> Result<Option<OneOrMany<&'a RiString<IriSpec>>>, CheckError>
where Self::Inner: 'a, Self: BaseExt,

Fetch the streams links for the current actor Read more
Source§

fn streams_unchecked<'a>(&'a self) -> Option<OneOrMany<&'a RiString<IriSpec>>>
where Self::Inner: 'a,

Fetch the streams links for the current actor Read more
Source§

fn streams_mut<'a>(&'a mut self) -> Option<OneOrMany<&'a mut RiString<IriSpec>>>
where Self::Inner: 'a,

Mutably fetch the streams links for the current actor Read more
Source§

fn set_stream(&mut self, streams: RiString<IriSpec>) -> &mut Self

Set the streams links for the current actor Read more
Source§

fn set_many_streams<I, U>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = U>, U: Into<RiString<IriSpec>>,

Set many streams links for the current actor Read more
Source§

fn add_stream(&mut self, stream: RiString<IriSpec>) -> &mut Self

Add a streams link for the current actor Read more
Source§

fn take_streams(&mut self) -> Option<OneOrMany<RiString<IriSpec>>>

Take the streams links from the current actor, leaving nothing Read more
Source§

fn delete_streams(&mut self) -> &mut Self

Delete the streams links from the current object Read more
Source§

fn preferred_username<'a>(&'a self) -> Option<&'a str>
where Self::Inner: 'a,

Fetch the preferred_username for the current actor Read more
Source§

fn set_preferred_username<T>(&mut self, string: T) -> &mut Self
where T: Into<String>,

Set the preferred_username for the current actor Read more
Source§

fn take_preferred_username(&mut self) -> Option<String>

Take the preferred_username from the current actor, leaving nothing Read more
Source§

fn delete_preferred_username(&mut self) -> &mut Self

Delete the preferred_username from the current actor Read more
Source§

fn endpoints<'a>( &'a self, ) -> Result<Option<&'a Endpoints<RiString<IriSpec>>>, CheckError>
where Self: BaseExt, Self::Inner: 'a,

Fetch the endpoints for the current actor, erroring if the Endpoints’ domains do not match the ID’s domain Read more
Source§

fn endpoints_unchecked<'a>(&'a self) -> Option<&'a Endpoints<RiString<IriSpec>>>
where Self::Inner: 'a,

Fetch the endpoints for the current actor Read more
Source§

fn endpoints_mut<'a>( &'a mut self, ) -> Option<&'a mut Endpoints<RiString<IriSpec>>>
where Self::Inner: 'a,

Mutably fetch the endpoints for the current actor Read more
Source§

fn set_endpoints( &mut self, endpoints: Endpoints<RiString<IriSpec>>, ) -> &mut Self

Set the endpoints for the current actor Read more
Source§

fn take_endpoints(&mut self) -> Option<Endpoints<RiString<IriSpec>>>

Take the endpoints from the current actor, leaving nothing Read more
Source§

fn delete_endpoints(&mut self) -> &mut Self

Delete the endpoints from the current actor Read more
Source§

impl<T> ApObjectExt for T
where T: AsApObject,

Source§

fn shares<'a>(&'a self) -> Option<&'a RiString<IriSpec>>
where Self::Inner: 'a,

Fetch the shares for the current object Read more
Source§

fn set_shares(&mut self, shares: RiString<IriSpec>) -> &mut Self

Set the shares for the current object Read more
Source§

fn take_shares(&mut self) -> Option<RiString<IriSpec>>

Take the shares from the current object, leaving nothing Read more
Source§

fn delete_shares(&mut self) -> &mut Self

Delete the shares from the current object Read more
Source§

fn likes<'a>(&'a self) -> Option<&'a RiString<IriSpec>>
where Self::Inner: 'a,

Fetch the likes for the current object Read more
Source§

fn set_likes(&mut self, likes: RiString<IriSpec>) -> &mut Self

Set the likes for the current object Read more
Source§

fn take_likes(&mut self) -> Option<RiString<IriSpec>>

Take the likes from the current object, leaving nothing Read more
Source§

fn delete_likes(&mut self) -> &mut Self

Delete the likes from the current object Read more
Source§

fn source<'a>(&'a self) -> Option<&'a AnyBase>
where Self::Inner: 'a,

Fetch the source for the current object Read more
Source§

fn set_source<T>(&mut self, source: T) -> &mut Self
where T: Into<AnyBase>,

Set the source for the current object Read more
Source§

fn take_source(&mut self) -> Option<AnyBase>

Take the source from the current object, leaving nothing Read more
Source§

fn delete_source(&mut self) -> &mut Self

Delete the source from the current object Read more
Source§

fn upload_media<'a>(&'a self) -> Option<OneOrMany<&'a RiString<IriSpec>>>
where Self::Inner: 'a,

Fetch the upload_media for the current object Read more
Source§

fn set_upload_media(&mut self, upload_media: RiString<IriSpec>) -> &mut Self

Set the upload_media for the current object Read more
Source§

fn set_many_upload_medias<I, U>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = U>, U: Into<RiString<IriSpec>>,

Set many upload_medias for the current object Read more
Source§

fn add_upload_media(&mut self, upload_media: RiString<IriSpec>) -> &mut Self

Add a upload_media to the current object Read more
Source§

fn take_upload_media(&mut self) -> Option<OneOrMany<RiString<IriSpec>>>

Take the upload_media from the current object, leaving nothing Read more
Source§

fn delete_upload_media(&mut self) -> &mut Self

Delete the upload_media from the current object Read more
Source§

impl<T> AsActivityActorExt for T
where T: AsActivityActor,

Source§

fn actor(&self) -> Result<&OneOrMany<AnyBase>, CheckError>
where Self: BaseExt,

Fetch the actor for the current activity Read more
Source§

fn actor_unchecked(&self) -> &OneOrMany<AnyBase>

Fetch the actor for the current activity Read more
Source§

fn actor_is(&self, id: &RiString<IriSpec>) -> bool

Check if the actor’s ID is id Read more
Source§

fn set_actor<T>(&mut self, actor: T) -> &mut Self
where T: Into<AnyBase>,

Set the actor for the current activity Read more
Source§

fn set_many_actors<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many actors for the current activity Read more
Source§

fn add_actor<T>(&mut self, actor: T) -> &mut Self
where T: Into<AnyBase>,

Add a actor to the current activity Read more
Source§

impl<T> AsActivityObjectExt for T

Source§

fn object(&self) -> Result<&OneOrMany<AnyBase>, CheckError>
where Self: BaseExt,

Fetch the object for the current activity Read more
Source§

fn object_unchecked(&self) -> &OneOrMany<AnyBase>

Fetch the object for the current activity Read more
Source§

fn object_is(&self, id: &RiString<IriSpec>) -> bool

Check if the object’s ID is id Read more
Source§

fn set_object<T>(&mut self, object: T) -> &mut Self
where T: Into<AnyBase>,

Set the object for the current activity Read more
Source§

fn set_many_objects<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many objects for the current activity Read more
Source§

fn add_object<T>(&mut self, object: T) -> &mut Self
where T: Into<AnyBase>,

Add a object to the current activity Read more
Source§

impl<T> AsOptOriginExt for T
where T: AsOptOrigin,

Source§

fn origin(&self) -> Option<&OneOrMany<AnyBase>>

Fetch the origin for the current activity Read more
Source§

fn set_origin<T>(&mut self, origin: T) -> &mut Self
where T: Into<AnyBase>,

Set the origin for the current activity Read more
Source§

fn set_many_origins<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many origins for the current activity Read more
Source§

fn add_origin<T>(&mut self, origin: T) -> &mut Self
where T: Into<AnyBase>,

Add a origin to the current activity Read more
Source§

fn take_origin(&mut self) -> Option<OneOrMany<AnyBase>>

Take a origin from the current activity, leaving nothing Read more
Source§

fn delete_origin(&mut self) -> &mut Self

Delete a origin from the current activity Read more
Source§

impl<T> AsOptTargetExt for T
where T: AsOptTarget,

Source§

fn target(&self) -> Option<&OneOrMany<AnyBase>>

Fetch the target for the current activity Read more
Source§

fn set_target<T>(&mut self, target: T) -> &mut Self
where T: Into<AnyBase>,

Set the target for the current activity Read more
Source§

fn set_many_targets<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many targets for the current activity Read more
Source§

fn add_target<T>(&mut self, target: T) -> &mut Self
where T: Into<AnyBase>,

Add a target to the current activity Read more
Source§

fn take_target(&mut self) -> Option<OneOrMany<AnyBase>>

Take a target from the current activity, leaving nothing Read more
Source§

fn delete_target(&mut self) -> &mut Self

Delete a target from the current activity Read more
Source§

impl<T> AsOriginExt for T
where T: AsOrigin,

Source§

fn origin(&self) -> &OneOrMany<AnyBase>

Fetch the origin for the current activity Read more
Source§

fn set_origin<T>(&mut self, origin: T) -> &mut Self
where T: Into<AnyBase>,

Set the origin for the current activity Read more
Source§

fn set_many_origins<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many origins for the current activity Read more
Source§

fn add_origin<T>(&mut self, origin: T) -> &mut Self
where T: Into<AnyBase>,

Add a origin to the current activity Read more
Source§

impl<T> AsTargetExt for T
where T: AsTarget,

Source§

fn target(&self) -> &OneOrMany<AnyBase>

Fetch the target for the current activity Read more
Source§

fn set_target<T>(&mut self, target: T) -> &mut Self
where T: Into<AnyBase>,

Set the target for the current activity Read more
Source§

fn set_many_targets<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many targets for the current activity Read more
Source§

fn add_target<T>(&mut self, target: T) -> &mut Self
where T: Into<AnyBase>,

Add a target to the current activity Read more
Source§

impl<T> BaseExt for T
where T: AsBase,

Source§

fn context<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the context for the current object Read more
Source§

fn set_context<T>(&mut self, context: T) -> &mut Self
where T: Into<AnyBase>,

Set the context for the current object Read more
Source§

fn set_many_contexts<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many contexts for the current object Read more
Source§

fn add_context<T>(&mut self, context: T) -> &mut Self
where T: Into<AnyBase>,

Add a context to the current object Read more
Source§

fn take_context(&mut self) -> Option<OneOrMany<AnyBase>>

Take the context from the current object, leaving nothing Read more
Source§

fn delete_context(&mut self) -> &mut Self

Delete the context from the current object Read more
Source§

fn check_authority<T>(&self, iri: T) -> Result<T, CheckError>
where T: AsRef<RiStr<IriSpec>>,

Check the authority of a given IRI matches this object’s ID Read more
Source§

fn id<'a>( &'a self, host: &str, port: Option<&str>, ) -> Result<Option<&'a RiString<IriSpec>>, CheckError>
where Self::Kind: 'a,

Fetch the id for the current object Read more
Source§

fn id_unchecked<'a>(&'a self) -> Option<&'a RiString<IriSpec>>
where Self::Kind: 'a,

Fetch the id for the current object Read more
Source§

fn id_mut<'a>( &'a mut self, host: &str, port: Option<&str>, ) -> Result<Option<&'a mut RiString<IriSpec>>, CheckError>
where Self::Kind: 'a,

Mutably borrow the ID from the current object Read more
Source§

fn id_mut_unchecked<'a>(&'a mut self) -> Option<&'a mut RiString<IriSpec>>
where Self::Kind: 'a,

Mutably borrow the ID from the current object Read more
Source§

fn is_id(&self, id: &RiString<IriSpec>) -> bool

Check if the provided id is equal to the object’s id Read more
Source§

fn set_id(&mut self, id: RiString<IriSpec>) -> &mut Self

Set the id for the current object Read more
Source§

fn take_id(&mut self) -> Option<RiString<IriSpec>>

Take the id from the current object, leaving nothing Read more
Source§

fn delete_id(&mut self) -> &mut Self

Delete the id from the current object Read more
Source§

fn kind<'a>(&'a self) -> Option<&'a Self::Kind>
where Self::Kind: 'a,

Fetch the kind for the current object Read more
Source§

fn is_kind(&self, kind: &Self::Kind) -> bool
where Self::Kind: PartialEq,

Check if the provided Kind is equal to the object’s Kind Read more
Source§

fn set_kind(&mut self, kind: Self::Kind) -> &mut Self

Set the kind for the current object Read more
Source§

fn take_kind(&mut self) -> Option<Self::Kind>

Take the kind from the current object, leaving nothing Read more
Source§

fn delete_kind(&mut self) -> &mut Self

Delete the kind from the current object Read more
Source§

fn name<'a>(&'a self) -> Option<OneOrMany<&'a AnyString>>
where Self::Kind: 'a,

Fetch the name for the current object Read more
Source§

fn set_name<T>(&mut self, name: T) -> &mut Self
where T: Into<AnyString>,

Set the name for the current object Read more
Source§

fn set_many_names<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyString>,

Set many names for the current object Read more
Source§

fn add_name<T>(&mut self, name: T) -> &mut Self
where T: Into<AnyString>,

Add a name to the current object Read more
Source§

fn take_name(&mut self) -> Option<OneOrMany<AnyString>>

Take the name from the current object, leaving nothing Read more
Source§

fn delete_name(&mut self) -> &mut Self

Delete the name from the current object Read more
Source§

fn media_type<'a>(&'a self) -> Option<&'a Mime>
where Self::Kind: 'a,

Fetch the media type for the current object Read more
Source§

fn set_media_type(&mut self, media_type: Mime) -> &mut Self

Set the media type for the current object Read more
Source§

fn take_media_type(&mut self) -> Option<Mime>

Take the media type from the current object, leaving nothing Read more
Source§

fn delete_media_type(&mut self) -> &mut Self

Delete the media type from the current object Read more
Source§

fn preview<'a>(&'a self) -> Option<OneOrMany<&'a AnyBase>>
where Self::Kind: 'a,

Fetch the preview for the current object Read more
Source§

fn set_preview<T>(&mut self, preview: T) -> &mut Self
where T: Into<AnyBase>,

Set the preview for the current object Read more
Source§

fn set_many_previews<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many previews for the current object Read more
Source§

fn add_preview<T>(&mut self, preview: T) -> &mut Self
where T: Into<AnyBase>,

Add a preview to the current object Read more
Source§

fn take_preview(&mut self) -> Option<OneOrMany<AnyBase>>

Take the preview from the current object, leaving nothing Read more
Source§

fn delete_preview(&mut self) -> &mut Self

Delete the preview from the current object 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> CollectionExt for T
where T: AsCollection,

Source§

fn items<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the items for the current activity Read more
Source§

fn set_item<T>(&mut self, item: T) -> &mut Self
where T: Into<AnyBase>,

Set the items for the current activity Read more
Source§

fn set_many_items<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many items for the current activity Read more
Source§

fn add_item<T>(&mut self, item: T) -> &mut Self
where T: Into<AnyBase>,

Add an item to the current activity Read more
Source§

fn take_items(&mut self) -> Option<OneOrMany<AnyBase>>

Take the items of the current object, leaving nothing Read more
Source§

fn delete_items(&mut self) -> &mut Self

Delete the items from the current object Read more
Source§

fn ordered_items<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the ordered_items for the current activity Read more
Source§

fn set_ordered_item<T>(&mut self, item: T) -> &mut Self
where T: Into<AnyBase>,

Set the ordered_items for the current activity Read more
Source§

fn set_many_ordered_items<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many ordered_items for the current activity Read more
Source§

fn add_ordered_item<T>(&mut self, item: T) -> &mut Self
where T: Into<AnyBase>,

Add an ordered_item to the current activity Read more
Source§

fn take_ordered_items(&mut self) -> Option<OneOrMany<AnyBase>>

Take the ordered_items of the current object, leaving nothing Read more
Source§

fn delete_ordered_items(&mut self) -> &mut Self

Delete the ordered_items from the current object Read more
Source§

fn total_items<'a>(&'a self) -> Option<u64>
where Self::Kind: 'a,

Fetch the total_items of the current object Read more
Source§

fn set_total_items<T>(&mut self, total_items: T) -> &mut Self
where T: Into<u64>,

Set the total_items for the current object Read more
Source§

fn take_total_items(&mut self) -> Option<u64>

Take the total_items of the current object, leaving nothing Read more
Source§

fn delete_total_items(&mut self) -> &mut Self

Delete the total_items from the current object Read more
Source§

fn current<'a>(&'a self) -> Option<&'a AnyBase>
where Self::Kind: 'a,

Fetch the current field for the current object Read more
Source§

fn set_current<T>(&mut self, current: T) -> &mut Self
where T: Into<AnyBase>,

Set the current field for the current object Read more
Source§

fn take_current(&mut self) -> Option<AnyBase>

Take the current field from the current object, leaving nothing Read more
Source§

fn delete_current(&mut self) -> &mut Self

Delete the current field from the current object Read more
Source§

fn first<'a>(&'a self) -> Option<&'a AnyBase>
where Self::Kind: 'a,

Fetch the first field for the current object Read more
Source§

fn set_first<T>(&mut self, first: T) -> &mut Self
where T: Into<AnyBase>,

Set the first field for the current object Read more
Source§

fn take_first(&mut self) -> Option<AnyBase>

Take the first field from the current object, leaving nothing Read more
Source§

fn delete_first(&mut self) -> &mut Self

Delete the first field from the current object Read more
Source§

fn last<'a>(&'a self) -> Option<&'a AnyBase>
where Self::Kind: 'a,

Fetch the last field for the current object Read more
Source§

fn set_last<T>(&mut self, last: T) -> &mut Self
where T: Into<AnyBase>,

Set the last field for the current object Read more
Source§

fn take_last(&mut self) -> Option<AnyBase>

Take the last field from the current object, leaving nothing Read more
Source§

fn delete_last(&mut self) -> &mut Self

Delete the last field from the current object Read more
Source§

impl<T> CollectionPageExt for T

Source§

fn part_of<'a>(&'a self) -> Option<&'a AnyBase>
where Self::Kind: 'a,

Fetch the part_of field for the current object Read more
Source§

fn set_part_of<T>(&mut self, part_of: T) -> &mut Self
where T: Into<AnyBase>,

Set the part_of field for the current object Read more
Source§

fn take_part_of(&mut self) -> Option<AnyBase>

Take the part_of field from the current object, leaving nothing Read more
Source§

fn delete_part_of(&mut self) -> &mut Self

Delete the part_of field from the current object Read more
Source§

fn next<'a>(&'a self) -> Option<&'a AnyBase>
where Self::Kind: 'a,

Fetch the next field for the current object Read more
Source§

fn set_next<T>(&mut self, next: T) -> &mut Self
where T: Into<AnyBase>,

Set the next field for the current object Read more
Source§

fn take_next(&mut self) -> Option<AnyBase>

Take the next field from the current object, leaving nothing Read more
Source§

fn delete_next(&mut self) -> &mut Self

Delete the next field from the current object Read more
Source§

fn prev<'a>(&'a self) -> Option<&'a AnyBase>
where Self::Kind: 'a,

Fetch the prev field for the current object Read more
Source§

fn set_prev<T>(&mut self, prev: T) -> &mut Self
where T: Into<AnyBase>,

Set the prev field for the current object Read more
Source§

fn take_prev(&mut self) -> Option<AnyBase>

Take the prev field from the current object, leaving nothing Read more
Source§

fn delete_prev(&mut self) -> &mut Self

Delete the prev field from the current object 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, Kind> ObjectExt for T
where T: AsObject<Kind = Kind>,

Source§

fn attachment<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the attachment for the current object Read more
Source§

fn set_attachment<T>(&mut self, attachment: T) -> &mut Self
where T: Into<AnyBase>,

Set the attachment for the current object Read more
Source§

fn set_many_attachments<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many attachments for the current object Read more
Source§

fn add_attachment<T>(&mut self, attachment: T) -> &mut Self
where T: Into<AnyBase>,

Add a attachment to the current object Read more
Source§

fn take_attachment(&mut self) -> Option<OneOrMany<AnyBase>>

Take the attachment from the current object, leaving nothing Read more
Source§

fn delete_attachment(&mut self) -> &mut Self

Delete the attachment from the current object Read more
Source§

fn attributed_to<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the attributed_to for the current object Read more
Source§

fn set_attributed_to<T>(&mut self, attributed_to: T) -> &mut Self
where T: Into<AnyBase>,

Set the attributed_to for the current object Read more
Source§

fn set_many_attributed_tos<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many attributed_tos for the current object Read more
Source§

fn add_attributed_to<T>(&mut self, attributed_to: T) -> &mut Self
where T: Into<AnyBase>,

Add a attributed_to to the current object Read more
Source§

fn take_attributed_to(&mut self) -> Option<OneOrMany<AnyBase>>

Take the attributed_to from the current object, leaving nothing Read more
Source§

fn delete_attributed_to(&mut self) -> &mut Self

Delete the attributed_to from the current object Read more
Source§

fn audience<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the audience for the current object Read more
Source§

fn set_audience<T>(&mut self, audience: T) -> &mut Self
where T: Into<AnyBase>,

Set the audience for the current object Read more
Source§

fn set_many_audiences<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

This overwrites the contents of audience Read more
Source§

fn add_audience<T>(&mut self, audience: T) -> &mut Self
where T: Into<AnyBase>,

Add a audience to the current object Read more
Source§

fn take_audience(&mut self) -> Option<OneOrMany<AnyBase>>

Take the audience from the current object, leaving nothing Read more
Source§

fn delete_audience(&mut self) -> &mut Self

Delete the audience from the current object Read more
Source§

fn content<'a>(&'a self) -> Option<OneOrMany<&'a AnyString>>
where Self::Kind: 'a,

Fetch the content for the current object Read more
Source§

fn set_content<T>(&mut self, content: T) -> &mut Self
where T: Into<AnyString>,

Set the content for the current object Read more
Source§

fn set_many_contents<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyString>,

Set many contents for the current object Read more
Source§

fn add_content<T>(&mut self, content: T) -> &mut Self
where T: Into<AnyString>,

Add a content to the current object Read more
Source§

fn take_content(&mut self) -> Option<OneOrMany<AnyString>>

Take the content from the current object, leaving nothing Read more
Source§

fn delete_content(&mut self) -> &mut Self

Delete the content from the current object Read more
Source§

fn summary<'a>(&'a self) -> Option<OneOrMany<&'a AnyString>>
where Self::Kind: 'a,

Fetch the summary for the current object Read more
Source§

fn set_summary<T>(&mut self, summary: T) -> &mut Self
where T: Into<AnyString>,

Set the summary for the current object Read more
Source§

fn set_many_summaries<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyString>,

Set many summaries for the current object Read more
Source§

fn add_summary<T>(&mut self, summary: T) -> &mut Self
where T: Into<AnyString>,

Add a summary to the current object Read more
Source§

fn take_summary(&mut self) -> Option<OneOrMany<AnyString>>

Take the summary from the current object, leaving nothing Read more
Source§

fn delete_summary(&mut self) -> &mut Self

Delete the summary from the current object Read more
Source§

fn url<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the url for the current object Read more
Source§

fn set_url<T>(&mut self, url: T) -> &mut Self
where T: Into<AnyBase>,

Set the url for the current object Read more
Source§

fn set_many_urls<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many urls for the current object Read more
Source§

fn add_url<T>(&mut self, url: T) -> &mut Self
where T: Into<AnyBase>,

Add a url to the current object Read more
Source§

fn take_url(&mut self) -> Option<OneOrMany<AnyBase>>

Take the url from the current object, leaving nothing Read more
Source§

fn delete_url(&mut self) -> &mut Self

Delete the url from the current object Read more
Source§

fn generator<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the generator for the current object Read more
Source§

fn set_generator<T>(&mut self, generator: T) -> &mut Self
where T: Into<AnyBase>,

Set the generator for the current object Read more
Source§

fn set_many_generators<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many generators for the current object Read more
Source§

fn add_generator<T>(&mut self, generator: T) -> &mut Self
where T: Into<AnyBase>,

Add a generator to the current object Read more
Source§

fn take_generator(&mut self) -> Option<OneOrMany<AnyBase>>

Take the generator from the current object, leaving nothing Read more
Source§

fn delete_generator(&mut self) -> &mut Self

Delete the generator from the current object Read more
Source§

fn icon<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the icon for the current object Read more
Source§

fn set_icon<T>(&mut self, icon: T) -> &mut Self
where T: Into<AnyBase>,

Set the icon for the current object Read more
Source§

fn set_many_icons<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many icons for the current object Read more
Source§

fn add_icon<T>(&mut self, icon: T) -> &mut Self
where T: Into<AnyBase>,

Add a icon to the current object Read more
Source§

fn take_icon(&mut self) -> Option<OneOrMany<AnyBase>>

Take the icon from the current object, leaving nothing Read more
Source§

fn delete_icon(&mut self) -> &mut Self

Delete the icon from the current object Read more
Source§

fn image<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the image for the current object Read more
Source§

fn set_image<T>(&mut self, image: T) -> &mut Self
where T: Into<AnyBase>,

Set the image for the current object Read more
Source§

fn set_many_images<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many images for the current object Read more
Source§

fn add_image<T>(&mut self, image: T) -> &mut Self
where T: Into<AnyBase>,

Add a image to the current object Read more
Source§

fn take_image(&mut self) -> Option<OneOrMany<AnyBase>>

Take the image from the current object, leaving nothing Read more
Source§

fn delete_image(&mut self) -> &mut Self

Delete the image from the current object Read more
Source§

fn location<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the location for the current object Read more
Source§

fn set_location<T>(&mut self, location: T) -> &mut Self
where T: Into<AnyBase>,

Set the location for the current object Read more
Source§

fn set_many_locations<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many locations for the current object Read more
Source§

fn add_location<T>(&mut self, location: T) -> &mut Self
where T: Into<AnyBase>,

Add a location to the current object Read more
Source§

fn take_location(&mut self) -> Option<OneOrMany<AnyBase>>

Take the location from the current object, leaving nothing Read more
Source§

fn delete_location(&mut self) -> &mut Self

Delete the location from the current object Read more
Source§

fn tag<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the tag for the current object Read more
Source§

fn set_tag<T>(&mut self, tag: T) -> &mut Self
where T: Into<AnyBase>,

Set the tag for the current object Read more
Source§

fn set_many_tags<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many tags for the current object Read more
Source§

fn add_tag<T>(&mut self, tag: T) -> &mut Self
where T: Into<AnyBase>,

Add a tag to the current object Read more
Source§

fn take_tag(&mut self) -> Option<OneOrMany<AnyBase>>

Take the tag from the current object, leaving nothing Read more
Source§

fn delete_tag(&mut self) -> &mut Self

Delete the tag from the current object Read more
Source§

fn start_time<'a>(&'a self) -> Option<OffsetDateTime>
where Self::Kind: 'a,

Fetch the start_time for the current object Read more
Source§

fn set_start_time(&mut self, start_time: OffsetDateTime) -> &mut Self

Set the start_time for the current object Read more
Source§

fn take_start_time(&mut self) -> Option<OffsetDateTime>

Take the start_time from the current object, leaving nothing Read more
Source§

fn delete_start_time(&mut self) -> &mut Self

Delete the start_time from the current object Read more
Source§

fn end_time<'a>(&'a self) -> Option<OffsetDateTime>
where Self::Kind: 'a,

Fetch the end_time for the current object Read more
Source§

fn set_end_time(&mut self, end_time: OffsetDateTime) -> &mut Self

Set the end_time for the current object Read more
Source§

fn take_end_time(&mut self) -> Option<OffsetDateTime>

Take the end_time from the current object, leaving nothing Read more
Source§

fn delete_end_time(&mut self) -> &mut Self

Delete the end_time from the current object Read more
Source§

fn duration<'a>(&'a self) -> Option<Duration>
where Self::Kind: 'a,

Fetch the duration for the current object Read more
Source§

fn set_duration(&mut self, duration: Duration) -> &mut Self

Set the duration for the current object Read more
Source§

fn take_duration(&mut self) -> Option<Duration>

Take the duration from the current object, leaving nothing Read more
Source§

fn delete_duration(&mut self) -> &mut Self

Delete the duration from the current object Read more
Source§

fn published<'a>(&'a self) -> Option<OffsetDateTime>
where Self::Kind: 'a,

Fetch the published for the current object Read more
Source§

fn set_published(&mut self, published: OffsetDateTime) -> &mut Self

Set the published for the current object Read more
Source§

fn take_published(&mut self) -> Option<OffsetDateTime>

Take the published from the current object, leaving nothing Read more
Source§

fn delete_published(&mut self) -> &mut Self

Delete the published from the current object Read more
Source§

fn updated<'a>(&'a self) -> Option<OffsetDateTime>
where Self::Kind: 'a,

Fetch the updated for the current object Read more
Source§

fn set_updated(&mut self, updated: OffsetDateTime) -> &mut Self

Set the updated for the current object Read more
Source§

fn take_updated(&mut self) -> Option<OffsetDateTime>

Take the updated from the current object, leaving nothing Read more
Source§

fn delete_updated(&mut self) -> &mut Self

Delete the updated from the current object Read more
Source§

fn in_reply_to<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the in_reply_to for the current object Read more
Source§

fn set_in_reply_to<T>(&mut self, in_reply_to: T) -> &mut Self
where T: Into<AnyBase>,

Set the in_reply_to for the current object Read more
Source§

fn set_many_in_reply_tos<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many in_reply_tos for the current object Read more
Source§

fn add_in_reply_to<T>(&mut self, in_reply_to: T) -> &mut Self
where T: Into<AnyBase>,

Add a in_reply_to to the current object Read more
Source§

fn take_in_reply_to(&mut self) -> Option<OneOrMany<AnyBase>>

Take the in_reply_to from the current object, leaving nothing Read more
Source§

fn delete_in_reply_to(&mut self) -> &mut Self

Delete the in_reply_to from the current object Read more
Source§

fn replies<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the replies for the current object Read more
Source§

fn set_reply<T>(&mut self, replies: T) -> &mut Self
where T: Into<AnyBase>,

Set the replies for the current object Read more
Source§

fn set_many_replies<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many replies for the current object Read more
Source§

fn add_reply<T>(&mut self, replies: T) -> &mut Self
where T: Into<AnyBase>,

Add a replies to the current object Read more
Source§

fn take_replies(&mut self) -> Option<OneOrMany<AnyBase>>

Take the replies from the current object, leaving nothing Read more
Source§

fn delete_replies(&mut self) -> &mut Self

Delete the replies from the current object Read more
Source§

fn to<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the to for the current object Read more
Source§

fn set_to<T>(&mut self, to: T) -> &mut Self
where T: Into<AnyBase>,

Set the to for the current object Read more
Source§

fn set_many_tos<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many tos for the current object Read more
Source§

fn add_to<T>(&mut self, to: T) -> &mut Self
where T: Into<AnyBase>,

Add a to to the current object Read more
Source§

fn take_to(&mut self) -> Option<OneOrMany<AnyBase>>

Take the to from the current object, leaving nothing Read more
Source§

fn delete_to(&mut self) -> &mut Self

Delete the to from the current object Read more
Source§

fn bto<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the bto for the current object Read more
Source§

fn set_bto<T>(&mut self, bto: T) -> &mut Self
where T: Into<AnyBase>,

Set the bto for the current object Read more
Source§

fn set_many_btos<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many btos for the current object Read more
Source§

fn add_bto<T>(&mut self, bto: T) -> &mut Self
where T: Into<AnyBase>,

Add a bto to the current object Read more
Source§

fn take_bto(&mut self) -> Option<OneOrMany<AnyBase>>

Take the bto from the current object, leaving nothing Read more
Source§

fn delete_bto(&mut self) -> &mut Self

Delete the bto from the current object Read more
Source§

fn cc<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the cc for the current object Read more
Source§

fn set_cc<T>(&mut self, cc: T) -> &mut Self
where T: Into<AnyBase>,

Set the cc for the current object Read more
Source§

fn set_many_ccs<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many ccs for the current object Read more
Source§

fn add_cc<T>(&mut self, cc: T) -> &mut Self
where T: Into<AnyBase>,

Add a cc to the current object Read more
Source§

fn take_cc(&mut self) -> Option<OneOrMany<AnyBase>>

Take the cc from the current object, leaving nothing Read more
Source§

fn delete_cc(&mut self) -> &mut Self

Delete the cc from the current object Read more
Source§

fn bcc<'a>(&'a self) -> Option<&'a OneOrMany<AnyBase>>
where Self::Kind: 'a,

Fetch the bcc for the current object Read more
Source§

fn set_bcc<T>(&mut self, bcc: T) -> &mut Self
where T: Into<AnyBase>,

Set the bcc for the current object Read more
Source§

fn set_many_bcc<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many bcc for the current object Read more
Source§

fn add_bcc<T>(&mut self, bcc: T) -> &mut Self
where T: Into<AnyBase>,

Add a bcc to the current object Read more
Source§

fn take_bcc(&mut self) -> Option<OneOrMany<AnyBase>>

Take the bcc from the current object, leaving nothing Read more
Source§

fn delete_bcc(&mut self) -> &mut Self

Delete the bcc from the current object Read more
Source§

impl<T> QuestionExt for T
where T: AsQuestion,

Source§

fn one_of(&self) -> Option<&OneOrMany<AnyBase>>

Fetch the one_of field for the current activity Read more
Source§

fn set_one_of<T>(&mut self, one_of: T) -> &mut Self
where T: Into<AnyBase>,

Set the one_of field for the current activity Read more
Source§

fn set_many_one_ofs<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many one_of items for the current activity Read more
Source§

fn add_one_of<T>(&mut self, one_of: T) -> &mut Self
where T: Into<AnyBase>,

Add a one_of to the current activity Read more
Source§

fn take_one_of(&mut self) -> Option<OneOrMany<AnyBase>>

Take the one_of field from the current activity, leaving nothing Read more
Source§

fn delete_one_of(&mut self) -> &mut Self

Delete the one_of field from the current activity Read more
Source§

fn any_of(&self) -> Option<&OneOrMany<AnyBase>>

Fetch the any_of field for the current activity Read more
Source§

fn set_any_of<T>(&mut self, any_of: T) -> &mut Self
where T: Into<AnyBase>,

Set the any_of field for the current activity Read more
Source§

fn set_many_any_ofs<I, T>(&mut self, items: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many any_of items for the current activity Read more
Source§

fn add_any_of<T>(&mut self, any_of: T) -> &mut Self
where T: Into<AnyBase>,

Add an any_of to the current activity Read more
Source§

fn take_any_of(&mut self) -> Option<OneOrMany<AnyBase>>

Take the any_of field from the current activity, leaving nothing Read more
Source§

fn delete_any_of(&mut self) -> &mut Self

Delete the any_of field from the current activity Read more
Source§

fn closed( &self, ) -> Option<Either<&OneOrMany<AnyBase>, Either<OffsetDateTime, bool>>>

Fetch the closed field for the current activity Read more
Source§

fn set_closed_base<T>(&mut self, closed: T) -> &mut Self
where T: Into<AnyBase>,

Set the closed field for the current activity Read more
Source§

fn set_many_closed_bases<I, T>(&mut self, closed: I) -> &mut Self
where I: IntoIterator<Item = T>, T: Into<AnyBase>,

Set many closed items for the current activity Read more
Source§

fn set_closed_date(&mut self, closed: OffsetDateTime) -> &mut Self

Set the closed field as a date Read more
Source§

fn set_closed_bool(&mut self, closed: bool) -> &mut Self

Set the closed field as a boolean Read more
Source§

fn add_closed_base<T>(&mut self, closed: T) -> &mut Self
where T: Into<AnyBase>,

Add an object or link to the closed field Read more
Source§

fn take_closed( &mut self, ) -> Option<Either<OneOrMany<AnyBase>, Either<OffsetDateTime, bool>>>

Take the closed field from the current activity Read more
Source§

fn delete_closed(&mut self) -> &mut Self

Remove the closed field from the current activity Read more
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>,