pub struct RegisterSnapshotRequest {
pub snapshot_id: String,
pub version: String,
pub capability: Capability,
pub difficulty: Difficulty,
pub tags: BTreeMap<String, String>,
pub execution: ExecutionSpec,
pub includes: Vec<SnapshotInclude>,
pub cases: Vec<EvalCase>,
pub ephemeral: bool,
pub ephemeral_ttl_ms: Option<i64>,
pub expected_digest: Option<String>,
}Fields§
§snapshot_id: String§version: String§capability: Capability§difficulty: Difficulty§execution: ExecutionSpec§includes: Vec<SnapshotInclude>§cases: Vec<EvalCase>§ephemeral: boolRegister as a temporary snapshot with a TTL. Ephemeral snapshots can neither be bound nor included by another snapshot.
ephemeral_ttl_ms: Option<i64>§expected_digest: Option<String>Optional client-computed digest. When present it must match the server’s recomputation; the server never trusts it blindly.
Trait Implementations§
Source§impl Clone for RegisterSnapshotRequest
impl Clone for RegisterSnapshotRequest
Source§fn clone(&self) -> RegisterSnapshotRequest
fn clone(&self) -> RegisterSnapshotRequest
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 RegisterSnapshotRequest
impl Debug for RegisterSnapshotRequest
Source§impl<'de> Deserialize<'de> for RegisterSnapshotRequest
impl<'de> Deserialize<'de> for RegisterSnapshotRequest
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 PartialEq for RegisterSnapshotRequest
impl PartialEq for RegisterSnapshotRequest
Source§impl Serialize for RegisterSnapshotRequest
impl Serialize for RegisterSnapshotRequest
impl StructuralPartialEq for RegisterSnapshotRequest
Auto Trait Implementations§
impl Freeze for RegisterSnapshotRequest
impl RefUnwindSafe for RegisterSnapshotRequest
impl Send for RegisterSnapshotRequest
impl Sync for RegisterSnapshotRequest
impl Unpin for RegisterSnapshotRequest
impl UnsafeUnpin for RegisterSnapshotRequest
impl UnwindSafe for RegisterSnapshotRequest
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