pub struct OpOutcome {
pub index: usize,
pub file: PathBuf,
pub span: Option<[usize; 2]>,
pub reason: Option<String>,
}Fields§
§index: usizeIndex of the op in the batch.
file: PathBuf§span: Option<[usize; 2]>The span this op resolved to, if hash was found. None for an unknown-hash refusal
and for a whole file that could not be read – there is nothing to resolve against.
reason: Option<String>Why the op was refused; None for an accepted op.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpOutcome
impl<'de> Deserialize<'de> for OpOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OpOutcome
impl RefUnwindSafe for OpOutcome
impl Send for OpOutcome
impl Sync for OpOutcome
impl Unpin for OpOutcome
impl UnsafeUnpin for OpOutcome
impl UnwindSafe for OpOutcome
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