pub struct DataFileContent {
pub path: DataFilePath,
pub commit: GitCommitId,
pub bytes: u64,
pub sha256: Sha256Hex,
pub note: Option<String>,
pub text: String,
pub omitted_bytes: u64,
pub cut: Option<String>,
pub asked: Option<String>,
}Expand description
One file of a data set (DATA-…), as get_content serves it: checked
against its signed SHA-256, then cut to the byte budget if it is longer
(0.91)
Fields§
§path: DataFilePath§commit: GitCommitIdThe commit it was read at, as the manifest pins it
bytes: u64The whole file’s size in bytes
sha256: Sha256HexThe whole file’s SHA-256, as signed; the bytes read matched it
note: Option<String>§text: StringThe file’s text, or as much of it as the budget holds
omitted_bytes: u64Bytes of the file not in text: 0 when it is whole
cut: Option<String>When text is cut: where, and how much more there is
asked: Option<String>The attachment= asked for, when it is not path: a path relative
to a directory at the repository root, resolved (0.91.4)
Implementations§
Trait Implementations§
Source§impl Clone for DataFileContent
impl Clone for DataFileContent
Source§impl Debug for DataFileContent
impl Debug for DataFileContent
Source§impl<'de> Deserialize<'de> for DataFileContent
impl<'de> Deserialize<'de> for DataFileContent
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 DataFileContent
Source§impl PartialEq for DataFileContent
impl PartialEq for DataFileContent
Source§impl Serialize for DataFileContent
impl Serialize for DataFileContent
impl StructuralPartialEq for DataFileContent
Auto Trait Implementations§
impl Freeze for DataFileContent
impl RefUnwindSafe for DataFileContent
impl Send for DataFileContent
impl Sync for DataFileContent
impl Unpin for DataFileContent
impl UnsafeUnpin for DataFileContent
impl UnwindSafe for DataFileContent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.