Skip to main content

AppSyncDirectResolverEventBuilder

Struct AppSyncDirectResolverEventBuilder 

Source
pub struct AppSyncDirectResolverEventBuilder<TArguments = Value, TSource = Value, TStash = Value, S: State = Empty>{ /* private fields */ }
Available on crate feature appsync only.
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<TArguments, TSource, TStash, S: State> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>

Source

pub fn build(self) -> AppSyncDirectResolverEvent<TArguments, TSource, TStash>
where S: IsComplete,

Finish building and return the requested object

Source

pub fn arguments( self, value: TArguments, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetArguments<S>>
where S::Arguments: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_arguments( self, value: Option<TArguments>, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetArguments<S>>
where S::Arguments: IsUnset,

Optional (Some / Option setters).

Source

pub fn identity( self, value: AppSyncIdentity, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetIdentity<S>>
where S::Identity: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_identity( self, value: Option<AppSyncIdentity>, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetIdentity<S>>
where S::Identity: IsUnset,

Optional (Some / Option setters).

Source

pub fn source( self, value: TSource, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetSource<S>>
where S::Source: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_source( self, value: Option<TSource>, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetSource<S>>
where S::Source: IsUnset,

Optional (Some / Option setters).

Source

pub fn request( self, value: AppSyncRequest, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetRequest<S>>
where S::Request: IsUnset,

Required.

Source

pub fn info( self, value: AppSyncInfo, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetInfo<S>>
where S::Info: IsUnset,

Required.

Source

pub fn prev( self, value: AppSyncPrevResult, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetPrev<S>>
where S::Prev: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_prev( self, value: Option<AppSyncPrevResult>, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetPrev<S>>
where S::Prev: IsUnset,

Optional (Some / Option setters).

Source

pub fn stash( self, value: TStash, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetStash<S>>
where S::Stash: IsUnset,

Required.

Source

pub fn other( self, value: Map<String, Value>, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetOther<S>>
where S::Other: IsUnset,

Optional (Some / Option setters). Default: <serde_json::Map<String, Value> as Default>::default().

Catchall to catch any additional fields that were present but not explicitly defined by this struct. Enabled with Cargo feature catch-all-fields. If catch-all-fields is disabled, any additional fields that are present will be ignored.

Source

pub fn maybe_other( self, value: Option<Map<String, Value>>, ) -> AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, SetOther<S>>
where S::Other: IsUnset,

Optional (Some / Option setters). Default: <serde_json::Map<String, Value> as Default>::default().

Catchall to catch any additional fields that were present but not explicitly defined by this struct. Enabled with Cargo feature catch-all-fields. If catch-all-fields is disabled, any additional fields that are present will be ignored.

Auto Trait Implementations§

§

impl<TArguments, TSource, TStash, S> Freeze for AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>
where TArguments: Freeze, TSource: Freeze, TStash: Freeze,

§

impl<TArguments, TSource, TStash, S> RefUnwindSafe for AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>
where TArguments: RefUnwindSafe, TSource: RefUnwindSafe, TStash: RefUnwindSafe,

§

impl<TArguments, TSource, TStash, S> Send for AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>
where TArguments: Send, TSource: Send, TStash: Send,

§

impl<TArguments, TSource, TStash, S> Sync for AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>
where TArguments: Sync, TSource: Sync, TStash: Sync,

§

impl<TArguments, TSource, TStash, S> Unpin for AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>
where TArguments: Unpin, TSource: Unpin, TStash: Unpin,

§

impl<TArguments, TSource, TStash, S> UnsafeUnpin for AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>
where TArguments: UnsafeUnpin, TSource: UnsafeUnpin, TStash: UnsafeUnpin,

§

impl<TArguments, TSource, TStash, S> UnwindSafe for AppSyncDirectResolverEventBuilder<TArguments, TSource, TStash, S>
where TArguments: UnwindSafe, TSource: UnwindSafe, TStash: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, 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.