pub enum WritebackError {
FieldNotFound(String),
ReadOnly(String),
WrongType {
name: String,
actual: &'static str,
requested: &'static str,
},
InvalidOption {
name: String,
value: String,
},
Malformed(String),
}Expand description
Errors surfaced by apply_field_value.
Variants§
FieldNotFound(String)
No terminal field or button group matches the fully-qualified name.
ReadOnly(String)
The field (or an ancestor) carries the ReadOnly flag (/Ff bit 1).
WrongType
The value kind does not match the field’s /FT.
Fields
InvalidOption
A radio export value that no kid widget declares, or a choice value
not present in a non-editable field’s /Opt array.
Malformed(String)
Structural problem in the document (missing AcroForm, shape changes).
Trait Implementations§
Source§impl Debug for WritebackError
impl Debug for WritebackError
Source§impl Display for WritebackError
impl Display for WritebackError
Source§impl Error for WritebackError
impl Error for WritebackError
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()
Auto Trait Implementations§
impl Freeze for WritebackError
impl RefUnwindSafe for WritebackError
impl Send for WritebackError
impl Sync for WritebackError
impl Unpin for WritebackError
impl UnsafeUnpin for WritebackError
impl UnwindSafe for WritebackError
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
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