pub struct AnalysisPayload {
pub version: u32,
pub valid: bool,
pub summary: Summary,
pub source: SourceDescriptor,
pub diagnostics: Vec<AnalysisDiagnostic>,
}Fields§
§version: u32§valid: bool§summary: Summary§source: SourceDescriptor§diagnostics: Vec<AnalysisDiagnostic>Implementations§
Source§impl AnalysisPayload
impl AnalysisPayload
pub fn new( source: SourceDescriptor, diagnostics: Vec<AnalysisDiagnostic>, ) -> Self
pub fn valid(source: SourceDescriptor) -> Self
pub fn to_json_bytes(&self) -> Result<Vec<u8>, Error>
pub fn to_pretty_json_string(&self) -> Result<String, Error>
Trait Implementations§
Source§impl Clone for AnalysisPayload
impl Clone for AnalysisPayload
Source§fn clone(&self) -> AnalysisPayload
fn clone(&self) -> AnalysisPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalysisPayload
impl Debug for AnalysisPayload
Source§impl<'de> Deserialize<'de> for AnalysisPayload
impl<'de> Deserialize<'de> for AnalysisPayload
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
impl Eq for AnalysisPayload
Source§impl PartialEq for AnalysisPayload
impl PartialEq for AnalysisPayload
Source§fn eq(&self, other: &AnalysisPayload) -> bool
fn eq(&self, other: &AnalysisPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnalysisPayload
impl Serialize for AnalysisPayload
impl StructuralPartialEq for AnalysisPayload
Auto Trait Implementations§
impl Freeze for AnalysisPayload
impl RefUnwindSafe for AnalysisPayload
impl Send for AnalysisPayload
impl Sync for AnalysisPayload
impl Unpin for AnalysisPayload
impl UnsafeUnpin for AnalysisPayload
impl UnwindSafe for AnalysisPayload
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.