pub struct LockDesc {
pub path: String,
pub token: String,
pub owner: String,
pub comment: Option<String>,
pub created: String,
pub expires: Option<String>,
}Expand description
A lock description as returned by get-lock(s) or lock.
Fields§
§path: StringRepository-relative path (no leading /) that is locked.
token: StringOpaque lock token.
owner: StringLock owner.
comment: Option<String>Optional lock comment.
created: StringCreation date string as reported by the server.
expires: Option<String>Expiration date string as reported by the server, if any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockDesc
impl<'de> Deserialize<'de> for LockDesc
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 LockDesc
impl StructuralPartialEq for LockDesc
Auto Trait Implementations§
impl Freeze for LockDesc
impl RefUnwindSafe for LockDesc
impl Send for LockDesc
impl Sync for LockDesc
impl Unpin for LockDesc
impl UnsafeUnpin for LockDesc
impl UnwindSafe for LockDesc
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