pub struct KiCadDiagnostic {
pub occurrence: Option<String>,
pub source_path: String,
pub code: KiCadDiagnosticCode,
pub object_kind: String,
pub object_uuid: Option<String>,
pub message: String,
}Expand description
One diagnostic about one source object.
Fields§
§occurrence: Option<String>Hierarchy occurrence address of the page it belongs to, when known.
source_path: StringBundle path of the source file that holds the object.
code: KiCadDiagnosticCode§object_kind: StringSource form head, for example sheet, symbol or wire.
object_uuid: Option<String>§message: StringImplementations§
Source§impl KiCadDiagnostic
impl KiCadDiagnostic
pub fn new( code: KiCadDiagnosticCode, source_path: impl Into<String>, object_kind: impl Into<String>, object_uuid: Option<String>, message: impl Into<String>, ) -> Self
pub fn on_occurrence(self, occurrence: impl Into<String>) -> Self
pub const fn severity(&self) -> KiCadDiagnosticSeverity
Trait Implementations§
Source§impl Clone for KiCadDiagnostic
impl Clone for KiCadDiagnostic
Source§fn clone(&self) -> KiCadDiagnostic
fn clone(&self) -> KiCadDiagnostic
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 KiCadDiagnostic
impl Debug for KiCadDiagnostic
impl Eq for KiCadDiagnostic
Source§impl Hash for KiCadDiagnostic
impl Hash for KiCadDiagnostic
Source§impl Ord for KiCadDiagnostic
impl Ord for KiCadDiagnostic
Source§fn cmp(&self, other: &KiCadDiagnostic) -> Ordering
fn cmp(&self, other: &KiCadDiagnostic) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KiCadDiagnostic
impl PartialEq for KiCadDiagnostic
Source§impl PartialOrd for KiCadDiagnostic
impl PartialOrd for KiCadDiagnostic
impl StructuralPartialEq for KiCadDiagnostic
Auto Trait Implementations§
impl Freeze for KiCadDiagnostic
impl RefUnwindSafe for KiCadDiagnostic
impl Send for KiCadDiagnostic
impl Sync for KiCadDiagnostic
impl Unpin for KiCadDiagnostic
impl UnsafeUnpin for KiCadDiagnostic
impl UnwindSafe for KiCadDiagnostic
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.