pub struct CheckpointFile {
pub path: String,
pub text: Option<String>,
pub base: Option<String>,
}Expand description
One file a save commits with exactly its text. Crosses as a value, inside a
CheckpointSpec.
Fields§
§path: StringThe path, /-separated and relative to the repository’s root; a path naming a parent
directory or .git is refused.
text: Option<String>The file’s text; None removes it.
base: Option<String>What the file must hold on the remote branch for the save to go ahead: the hex
SHA-256 of its text, or empty when it must not exist there. None writes it whatever
it holds.
Trait Implementations§
Source§impl Clone for CheckpointFile
impl Clone for CheckpointFile
Source§impl Debug for CheckpointFile
impl Debug for CheckpointFile
impl Eq for CheckpointFile
Source§impl FromValue for CheckpointFile
impl FromValue for CheckpointFile
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl FromWalk for CheckpointFile
impl FromWalk for CheckpointFile
Source§impl MapRead for CheckpointFile
impl MapRead for CheckpointFile
Source§impl PartialEq for CheckpointFile
impl PartialEq for CheckpointFile
Source§impl Schema for CheckpointFile
impl Schema for CheckpointFile
impl StructuralPartialEq for CheckpointFile
Source§impl ToValue for CheckpointFile
impl ToValue for CheckpointFile
Auto Trait Implementations§
impl Freeze for CheckpointFile
impl RefUnwindSafe for CheckpointFile
impl Send for CheckpointFile
impl Sync for CheckpointFile
impl Unpin for CheckpointFile
impl UnsafeUnpin for CheckpointFile
impl UnwindSafe for CheckpointFile
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