pub struct Claim {
pub what: String,
pub verification: String,
pub evidence: Vec<EvidenceRef>,
}Fields§
§what: String§verification: String§evidence: Vec<EvidenceRef>Implementations§
Source§impl Claim
impl Claim
pub fn new( what: impl Into<String>, verification: impl Into<String>, evidence: Vec<EvidenceRef>, ) -> Result<Self, ClaimError>
pub fn parse(input: &str) -> Result<Self, ClaimError>
Sourcepub fn parse_with<S: AsRef<str>>(
input: &str,
patterns: &[S],
) -> Result<Self, ClaimError>
pub fn parse_with<S: AsRef<str>>( input: &str, patterns: &[S], ) -> Result<Self, ClaimError>
Parse a CLAIM, accepting the given evidence-pointer patterns (in addition to the built-in heuristics).
pub fn parse_line(line: &str) -> Result<Self, ClaimError>
pub fn parse_line_with<S: AsRef<str>>( line: &str, patterns: &[S], ) -> Result<Self, ClaimError>
pub fn to_line(&self) -> String
Trait Implementations§
impl Eq for Claim
impl StructuralPartialEq for Claim
Auto Trait Implementations§
impl Freeze for Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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