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
Auto Trait Implementations§
impl Freeze for PatchHeader
impl RefUnwindSafe for PatchHeader
impl Send for PatchHeader
impl Sync for PatchHeader
impl Unpin for PatchHeader
impl UnwindSafe for PatchHeader
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