pub struct RestoreRevisionOptions {
pub commit_id: Option<CommitId>,
pub message: Option<String>,
}Expand description
Per-operation options, defined once in loonfs-api and shared with the
embedded loonfs runtime so the two surfaces cannot drift a field apart.
Options for restoring a file revision by path.
Fields§
§commit_id: Option<CommitId>Optional idempotency key.
message: Option<String>Annotation recorded on the commit; part of the commit’s identity.
Trait Implementations§
Source§impl Clone for RestoreRevisionOptions
impl Clone for RestoreRevisionOptions
Source§fn clone(&self) -> RestoreRevisionOptions
fn clone(&self) -> RestoreRevisionOptions
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 RestoreRevisionOptions
impl Debug for RestoreRevisionOptions
Source§impl Default for RestoreRevisionOptions
impl Default for RestoreRevisionOptions
Source§fn default() -> RestoreRevisionOptions
fn default() -> RestoreRevisionOptions
Returns the “default value” for a type. Read more
impl Eq for RestoreRevisionOptions
Source§impl PartialEq for RestoreRevisionOptions
impl PartialEq for RestoreRevisionOptions
impl StructuralPartialEq for RestoreRevisionOptions
Auto Trait Implementations§
impl Freeze for RestoreRevisionOptions
impl RefUnwindSafe for RestoreRevisionOptions
impl Send for RestoreRevisionOptions
impl Sync for RestoreRevisionOptions
impl Unpin for RestoreRevisionOptions
impl UnsafeUnpin for RestoreRevisionOptions
impl UnwindSafe for RestoreRevisionOptions
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,
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.