#[non_exhaustive]pub struct CompositionCopy {
pub command_failed: LocalizedText,
pub verification_in_progress: LocalizedText,
pub revision_conflict: LocalizedText,
pub interaction_unavailable: LocalizedText,
pub case_refresh_unavailable: LocalizedText,
pub answer_unsupported: LocalizedText,
pub answer_source_unavailable: LocalizedText,
pub answer_not_written: LocalizedText,
pub budget_exhausted: LocalizedText,
pub instruction_declined: LocalizedText,
pub answer_too_long: LocalizedText,
}Expand description
Server-authored copy for everything composition writes itself.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command_failed: LocalizedTextBody of the notice::COMMAND_FAILED notice.
verification_in_progress: LocalizedTextBody of the notice::VERIFICATION_IN_PROGRESS notice.
revision_conflict: LocalizedTextBody of the notice::REVISION_CONFLICT notice.
Body of the notice::INTERACTION_UNAVAILABLE notice.
Body of the notice::CASE_REFRESH_UNAVAILABLE notice.
answer_unsupported: LocalizedTextText of an answer the runtime could not produce at all.
Text of an answer whose sources were unavailable.
answer_not_written: LocalizedTextText of an answer no model wrote this time.
budget_exhausted: LocalizedTextBody of the notice::BUDGET_EXHAUSTED notice.
instruction_declined: LocalizedTextBody of the notice::INSTRUCTION_DECLINED notice.
answer_too_long: LocalizedTextThe text of an answer that ran past the configured length.
Only reachable in a deployment that configured a length at all; the library ships none.
Implementations§
Trait Implementations§
Source§impl Clone for CompositionCopy
impl Clone for CompositionCopy
Source§impl Debug for CompositionCopy
impl Debug for CompositionCopy
Source§impl Default for CompositionCopy
impl Default for CompositionCopy
impl Eq for CompositionCopy
Source§impl PartialEq for CompositionCopy
impl PartialEq for CompositionCopy
Source§impl ServerCopy for CompositionCopy
impl ServerCopy for CompositionCopy
Source§fn entries(&self) -> Vec<(&'static str, &LocalizedText)>
fn entries(&self) -> Vec<(&'static str, &LocalizedText)>
Every sentence, by the name of its field.
Source§fn entries_mut(&mut self) -> Vec<(&'static str, &mut LocalizedText)>
fn entries_mut(&mut self) -> Vec<(&'static str, &mut LocalizedText)>
Every sentence, to change in place.
impl StructuralPartialEq for CompositionCopy
Auto Trait Implementations§
impl Freeze for CompositionCopy
impl RefUnwindSafe for CompositionCopy
impl Send for CompositionCopy
impl Sync for CompositionCopy
impl Unpin for CompositionCopy
impl UnsafeUnpin for CompositionCopy
impl UnwindSafe for CompositionCopy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.