#[non_exhaustive]pub enum ModelOutputItemError {
InvalidSource {
kind: ModelOutputItemKind,
expected: ContentSource,
actual: ContentSource,
},
InvalidTrust {
kind: ModelOutputItemKind,
actual: ContentTrust,
},
}Expand description
Invalid intrinsic metadata on an ordered model output item.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSource
Content was attributed to the wrong immediate domain source.
Fields
§
kind: ModelOutputItemKindOutput item classification.
§
expected: ContentSourceRequired immediate source.
§
actual: ContentSourceRejected asserted source.
InvalidTrust
Model output was incorrectly marked application-controlled.
Fields
§
kind: ModelOutputItemKindOutput item classification.
§
actual: ContentTrustRejected asserted trust.
Trait Implementations§
Source§impl Clone for ModelOutputItemError
impl Clone for ModelOutputItemError
Source§impl Debug for ModelOutputItemError
impl Debug for ModelOutputItemError
Source§impl Display for ModelOutputItemError
impl Display for ModelOutputItemError
impl Eq for ModelOutputItemError
Source§impl Error for ModelOutputItemError
impl Error for ModelOutputItemError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ModelOutputItemError
impl PartialEq for ModelOutputItemError
impl StructuralPartialEq for ModelOutputItemError
Auto Trait Implementations§
impl Forget for ModelOutputItemError
impl Freeze for ModelOutputItemError
impl Move for ModelOutputItemError
impl RefUnwindSafe for ModelOutputItemError
impl Send for ModelOutputItemError
impl Sync for ModelOutputItemError
impl Unpin for ModelOutputItemError
impl UnsafeUnpin for ModelOutputItemError
impl UnwindSafe for ModelOutputItemError
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