pub struct PromptVersionUpdateBuilder<'f1, 'f2, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<'f1, 'f2, S: State> PromptVersionUpdateBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S: State> PromptVersionUpdateBuilder<'f1, 'f2, S>
Sourcepub async fn call(self) -> Result<Prompt, Error<PromptVersionUpdateError>>where
S: IsComplete,
pub async fn call(self) -> Result<Prompt, Error<PromptVersionUpdateError>>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn configuration(
self,
value: &'f1 Configuration,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetConfiguration<S>>where
S::Configuration: IsUnset,
pub fn configuration(
self,
value: &'f1 Configuration,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetConfiguration<S>>where
S::Configuration: IsUnset,
Required.
Sourcepub fn name(
self,
value: &'f2 str,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: &'f2 str,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetName<S>>where
S::Name: IsUnset,
Required.
Sourcepub fn version(
self,
value: i32,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetVersion<S>>where
S::Version: IsUnset,
pub fn version(
self,
value: i32,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetVersion<S>>where
S::Version: IsUnset,
Required.
Sourcepub fn prompt_version_update_request(
self,
value: PromptVersionUpdateRequest,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetPromptVersionUpdateRequest<S>>where
S::PromptVersionUpdateRequest: IsUnset,
pub fn prompt_version_update_request(
self,
value: PromptVersionUpdateRequest,
) -> PromptVersionUpdateBuilder<'f1, 'f2, SetPromptVersionUpdateRequest<S>>where
S::PromptVersionUpdateRequest: IsUnset,
Required.
Auto Trait Implementations§
impl<'f1, 'f2, S> Freeze for PromptVersionUpdateBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S = Empty> !RefUnwindSafe for PromptVersionUpdateBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> Send for PromptVersionUpdateBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> Sync for PromptVersionUpdateBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> Unpin for PromptVersionUpdateBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S = Empty> !UnwindSafe for PromptVersionUpdateBuilder<'f1, 'f2, S>
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