pub struct PinEntry {
pub journal_id: String,
pub name: Option<String>,
pub cwd: Option<PathBuf>,
pub pinned_at: Option<DateTime<Utc>>,
pub state: Option<String>,
pub reason: Option<String>,
pub cache_keepwarm: Option<String>,
pub attempts: u32,
pub extra: Map<String, Value>,
}Expand description
One pinned journal. Never carries SessionConfig or settings.
Fields§
§journal_id: String§name: Option<String>§cwd: Option<PathBuf>§pinned_at: Option<DateTime<Utc>>§state: Option<String>waiting / failed after a restore that did not bring it back.
reason: Option<String>§cache_keepwarm: Option<String>The session’s /keepwarm override (off/auto/<N>h), restored
with the pin; one this build can’t parse falls back to the default.
attempts: u32Crash-loop marker: restores begun and not finished.
extra: Map<String, Value>Fields from a newer build, kept as they were.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PinEntry
impl<'de> Deserialize<'de> for PinEntry
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 StructuralPartialEq for PinEntry
Auto Trait Implementations§
impl Freeze for PinEntry
impl RefUnwindSafe for PinEntry
impl Send for PinEntry
impl Sync for PinEntry
impl Unpin for PinEntry
impl UnsafeUnpin for PinEntry
impl UnwindSafe for PinEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.