Struct libpijul_compat::patch::PatchHeader
source · pub struct PatchHeader {
pub authors: Vec<String>,
pub name: String,
pub description: Option<String>,
pub timestamp: DateTime<Utc>,
pub flag: PatchFlags,
}
Expand description
The header of a patch contains all the metadata about a patch (but not the actual contents of a patch).
Fields§
§name: String
§description: Option<String>
§timestamp: DateTime<Utc>
§flag: PatchFlags
Implementations§
source§impl PatchHeader
impl PatchHeader
sourcepub fn from_reader_nochanges<R: Read>(r: R) -> Result<PatchHeader>
pub fn from_reader_nochanges<R: Read>(r: R) -> Result<PatchHeader>
Reads everything in this patch, but the actual contents.
Trait Implementations§
source§impl Clone for PatchHeader
impl Clone for PatchHeader
source§fn clone(&self) -> PatchHeader
fn clone(&self) -> PatchHeader
Returns a copy of the value. Read more
1.0.0 · 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 PatchHeader
impl Debug for PatchHeader
source§impl<'de> Deserialize<'de> for PatchHeader
impl<'de> Deserialize<'de> for PatchHeader
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