pub struct ExternalCorpus {
pub name: String,
pub repo: Option<String>,
pub git_ref: Option<String>,
pub head: Option<String>,
pub n_files: usize,
pub mark: Option<String>,
pub counted_by: String,
pub note: Option<String>,
}Expand description
The declaration’s shape, defined ONCE — in the schema module, beside the
pv validate rules that check it (PMAT-1098). It used to be declared here,
which made pv census and pv validate two readers each holding half of
what the file is; EXT-CORPORA-009 now validates THROUGH this struct, so a
declaration pv calls valid is one this command can count, by construction.
One contracts/external-corpora.yaml entry, copied into the census verbatim.
Fields§
§name: String§repo: Option<String>§git_ref: Option<String>§head: Option<String>§n_files: usize§mark: Option<String>§counted_by: StringThe command that produced n_files. Never run by the census: a census
must be reproducible offline, and a network read would make two runs
disagree.
note: Option<String>Trait Implementations§
Source§impl Clone for ExternalCorpus
impl Clone for ExternalCorpus
Source§fn clone(&self) -> ExternalCorpus
fn clone(&self) -> ExternalCorpus
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 ExternalCorpus
impl Debug for ExternalCorpus
Source§impl<'de> Deserialize<'de> for ExternalCorpus
impl<'de> Deserialize<'de> for ExternalCorpus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalCorpus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalCorpus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExternalCorpus
Source§impl PartialEq for ExternalCorpus
impl PartialEq for ExternalCorpus
Source§impl Serialize for ExternalCorpus
impl Serialize for ExternalCorpus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExternalCorpus
Auto Trait Implementations§
impl Freeze for ExternalCorpus
impl RefUnwindSafe for ExternalCorpus
impl Send for ExternalCorpus
impl Sync for ExternalCorpus
impl Unpin for ExternalCorpus
impl UnsafeUnpin for ExternalCorpus
impl UnwindSafe for ExternalCorpus
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§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.