pub struct PromptMetaBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PromptMetaBuilder<S>
impl<S: State> PromptMetaBuilder<S>
Sourcepub fn build(self) -> PromptMetawhere
S: IsComplete,
pub fn build(self) -> PromptMetawhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, value: String) -> PromptMetaBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: String) -> PromptMetaBuilder<SetName<S>>where
S::Name: IsUnset,
Required.
Sourcepub fn type(self, value: PromptType) -> PromptMetaBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn type(self, value: PromptType) -> PromptMetaBuilder<SetType<S>>where
S::Type: IsUnset,
Required.
Sourcepub fn versions(self, value: Vec<i32>) -> PromptMetaBuilder<SetVersions<S>>where
S::Versions: IsUnset,
pub fn versions(self, value: Vec<i32>) -> PromptMetaBuilder<SetVersions<S>>where
S::Versions: IsUnset,
Required.
Sourcepub fn labels(self, value: Vec<String>) -> PromptMetaBuilder<SetLabels<S>>where
S::Labels: IsUnset,
pub fn labels(self, value: Vec<String>) -> PromptMetaBuilder<SetLabels<S>>where
S::Labels: IsUnset,
Required.
Required.
Sourcepub fn last_updated_at(
self,
value: DateTime<FixedOffset>,
) -> PromptMetaBuilder<SetLastUpdatedAt<S>>where
S::LastUpdatedAt: IsUnset,
pub fn last_updated_at(
self,
value: DateTime<FixedOffset>,
) -> PromptMetaBuilder<SetLastUpdatedAt<S>>where
S::LastUpdatedAt: IsUnset,
Required.
Sourcepub fn last_config(self, value: Value) -> PromptMetaBuilder<SetLastConfig<S>>where
S::LastConfig: IsUnset,
pub fn last_config(self, value: Value) -> PromptMetaBuilder<SetLastConfig<S>>where
S::LastConfig: IsUnset,
Sourcepub fn maybe_last_config(
self,
value: Option<Value>,
) -> PromptMetaBuilder<SetLastConfig<S>>where
S::LastConfig: IsUnset,
pub fn maybe_last_config(
self,
value: Option<Value>,
) -> PromptMetaBuilder<SetLastConfig<S>>where
S::LastConfig: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PromptMetaBuilder<S>
impl<S> RefUnwindSafe for PromptMetaBuilder<S>
impl<S> Send for PromptMetaBuilder<S>
impl<S> Sync for PromptMetaBuilder<S>
impl<S> Unpin for PromptMetaBuilder<S>
impl<S> UnsafeUnpin for PromptMetaBuilder<S>
impl<S> UnwindSafe for PromptMetaBuilder<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