pub struct FindingAnchor {
pub id: String,
pub content: Option<String>,
pub body: Option<String>,
pub paths: Vec<String>,
pub before: Option<String>,
pub after: Option<String>,
pub line: Option<u32>,
pub clone_lines: Vec<CloneLineAnchor>,
}Fields§
§id: String§content: Option<String>§body: Option<String>§paths: Vec<String>§before: Option<String>§after: Option<String>§line: Option<u32>§clone_lines: Vec<CloneLineAnchor>Implementations§
Source§impl FindingAnchor
impl FindingAnchor
pub fn id_only(id: impl Into<String>) -> FindingAnchor
pub fn from_hashes( id: String, content: u64, before: Option<u64>, after: Option<u64>, line: Option<u32>, ) -> FindingAnchor
pub fn with_body_and_paths( self, body: Option<u64>, paths: Vec<String>, ) -> FindingAnchor
Trait Implementations§
Source§impl Clone for FindingAnchor
impl Clone for FindingAnchor
Source§impl Debug for FindingAnchor
impl Debug for FindingAnchor
Source§impl Default for FindingAnchor
impl Default for FindingAnchor
Source§impl<'de> Deserialize<'de> for FindingAnchor
impl<'de> Deserialize<'de> for FindingAnchor
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 FindingAnchor
Source§impl Hash for FindingAnchor
impl Hash for FindingAnchor
Source§impl Ord for FindingAnchor
impl Ord for FindingAnchor
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FindingAnchor
impl PartialEq for FindingAnchor
Source§impl PartialOrd for FindingAnchor
impl PartialOrd for FindingAnchor
Source§impl Serialize for FindingAnchor
impl Serialize for FindingAnchor
impl StructuralPartialEq for FindingAnchor
Auto Trait Implementations§
impl Forget for FindingAnchor
impl Freeze for FindingAnchorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<CloneLineAnchor>: Freeze,
impl Move for FindingAnchor
impl RefUnwindSafe for FindingAnchor
impl Send for FindingAnchorwhere
RawVecInner: Send,
impl Sync for FindingAnchorwhere
RawVecInner: Sync,
impl Unpin for FindingAnchor
impl UnsafeUnpin for FindingAnchorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<CloneLineAnchor>: UnsafeUnpin,
impl UnwindSafe for FindingAnchorwhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.