pub struct FaceTransformRefusal {
pub motion: &'static str,
pub reason: String,
pub hint: String,
pub kernel: String,
}Expand description
A Transform Face refusal, said three ways: what happened, why, and what to do — plus the kernel’s own words, kept.
Fields§
§motion: &'static strWhich motion refused: "Move Face" or "Rotate Face", named for the
half of the feature the user was actually driving. Transform Face is
both, and a user who dragged a rotation ring should not be told
something about a translation.
reason: StringThe refusal in one sentence, naming the selected face.
hint: StringWhat to do instead. Always something the user can do from where they are — the model is at its last good answer, so every hint is a smaller value away rather than a restart.
kernel: StringThe kernel’s message, verbatim and unabridged.
Implementations§
Trait Implementations§
Source§impl Clone for FaceTransformRefusal
impl Clone for FaceTransformRefusal
Source§impl Debug for FaceTransformRefusal
impl Debug for FaceTransformRefusal
impl Eq for FaceTransformRefusal
Source§impl PartialEq for FaceTransformRefusal
impl PartialEq for FaceTransformRefusal
impl StructuralPartialEq for FaceTransformRefusal
Auto Trait Implementations§
impl Freeze for FaceTransformRefusal
impl RefUnwindSafe for FaceTransformRefusal
impl Send for FaceTransformRefusal
impl Sync for FaceTransformRefusal
impl Unpin for FaceTransformRefusal
impl UnsafeUnpin for FaceTransformRefusal
impl UnwindSafe for FaceTransformRefusal
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more