pub struct SessionBody {
pub session_id: String,
pub target: SessionTarget,
pub argv: Option<Vec<String>>,
pub tty: bool,
pub max_duration_seconds: u32,
pub requester: String,
pub reason: String,
pub verifier_nonce: String,
pub verifier_key: String,
pub client_key: String,
}Expand description
session/v1: one exec session.
Fields§
§session_id: StringUnique session id; an enforcer refuses one it has seen.
target: SessionTargetWhat the session reaches.
argv: Option<Vec<String>>Program and arguments, or absent for the default shell.
tty: boolWhether a terminal is allocated.
max_duration_seconds: u32Longest the session may last.
requester: StringWho asked, for the transcript.
reason: StringWhy, for the transcript.
verifier_nonce: StringThe enforcer’s fresh nonce, base64.
verifier_key: StringThe enforcer’s ephemeral public key for this session, base64.
client_key: StringThe client’s ephemeral public key, base64.
Implementations§
Source§impl SessionBody
impl SessionBody
Trait Implementations§
Source§impl Clone for SessionBody
impl Clone for SessionBody
Source§impl Debug for SessionBody
impl Debug for SessionBody
Source§impl<'de> Deserialize<'de> for SessionBody
impl<'de> Deserialize<'de> for SessionBody
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 SessionBody
Source§impl PartialEq for SessionBody
impl PartialEq for SessionBody
Source§impl Serialize for SessionBody
impl Serialize for SessionBody
impl StructuralPartialEq for SessionBody
Auto Trait Implementations§
impl Forget for SessionBody
impl Freeze for SessionBody
impl Move for SessionBody
impl RefUnwindSafe for SessionBody
impl Send for SessionBody
impl Sync for SessionBody
impl Unpin for SessionBody
impl UnsafeUnpin for SessionBody
impl UnwindSafe for SessionBody
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