pub struct Alive {
pub me: SessionUri,
pub activity: Option<Activity>,
pub prompt_secs: Option<u64>,
pub container: bool,
pub binary: Option<RiffBinary>,
}Expand description
POST /v1/alive: a keep-alive. It shows that the session still runs,
but it is not a call: the idle time in who stays (R204).
Fields§
§me: SessionUri§activity: Option<Activity>The newest fact of the hooks of the session on its machine, when it has one (01M41FZNTPXQNCZ1S99HE42PYQ).
prompt_secs: Option<u64>The seconds since the last prompt of the person in the session, when the prompt hook saw one (01M48VDWPDYRPEAXHR1MYDN1M7).
container: boolTrue when the riff daemon sends the keep-alive for a session in a container. The session is live while it is not gone (01M510MG0CKDXAKF6YJ768K7E8).
binary: Option<RiffBinary>The riff of the process that lives as long as the session:
riff mcp, the riff daemon, riff run or riff workers host.
Each other keep-alive sends none, and the server keeps the last
one (01M514C11BPE93PJT4221PYVHS).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alive
impl<'de> Deserialize<'de> for Alive
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
Source§impl JsonSchema for Alive
impl JsonSchema for Alive
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Alive
impl RefUnwindSafe for Alive
impl Send for Alive
impl Sync for Alive
impl Unpin for Alive
impl UnsafeUnpin for Alive
impl UnwindSafe for Alive
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