pub struct ProfileSnapshot {
pub kind: String,
pub name: Option<String>,
pub path: Option<PathBuf>,
pub locked: bool,
}Expand description
Snapshot of the host’s active profile, shared by GET /profile (full),
GET /health (summary without path), and the SDK’s Client::profile_info.
Fields that are not meaningful for a given endpoint are omitted during
serialization — path in the health response, locked when false.
Fields§
§kind: String§name: Option<String>§path: Option<PathBuf>Absolute profile directory on the host filesystem. Present in
GET /profile; absent in GET /health.
locked: boolWhether the profile lock is held. false for ephemeral hosts.
Implementations§
Source§impl ProfileSnapshot
impl ProfileSnapshot
Sourcepub fn is_persistent(&self) -> bool
pub fn is_persistent(&self) -> bool
true when the host is running with --profile <name>.
Default cookie-jar path for this profile. None when path is
absent (e.g. a health-response snapshot with no profile path).
Trait Implementations§
Source§impl Clone for ProfileSnapshot
impl Clone for ProfileSnapshot
Source§fn clone(&self) -> ProfileSnapshot
fn clone(&self) -> ProfileSnapshot
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 ProfileSnapshot
impl Debug for ProfileSnapshot
Source§impl<'de> Deserialize<'de> for ProfileSnapshot
impl<'de> Deserialize<'de> for ProfileSnapshot
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 ProfileSnapshot
impl RefUnwindSafe for ProfileSnapshot
impl Send for ProfileSnapshot
impl Sync for ProfileSnapshot
impl Unpin for ProfileSnapshot
impl UnsafeUnpin for ProfileSnapshot
impl UnwindSafe for ProfileSnapshot
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