pub struct CaptureExpected {
pub schema: String,
pub invocation: String,
pub request_sha256: String,
pub host_sha256: String,
pub installation_sha256: String,
pub config_sha256: String,
pub executable_sha256: String,
pub config_path: String,
pub operation_key: String,
}Fields§
§schema: String§invocation: String§request_sha256: String§host_sha256: String§installation_sha256: String§config_sha256: String§executable_sha256: String§config_path: String§operation_key: StringImplementations§
Source§impl CaptureExpected
impl CaptureExpected
Sourcepub fn bind(
request: &CaptureRequest,
identity: &SlotIdentity,
host_sha256: String,
config_path: String,
) -> Result<Self, &'static str>
pub fn bind( request: &CaptureRequest, identity: &SlotIdentity, host_sha256: String, config_path: String, ) -> Result<Self, &'static str>
Pure binding constructor; future host must derive arguments from held files.
pub fn validate(&self, request: &CaptureRequest) -> Result<(), &'static str>
pub fn encode(&self, r: &CaptureRequest) -> Result<Vec<u8>, &'static str>
pub fn decode(b: &[u8], r: &CaptureRequest) -> Result<Self, &'static str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CaptureExpected
impl<'de> Deserialize<'de> for CaptureExpected
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 CaptureExpected
impl RefUnwindSafe for CaptureExpected
impl Send for CaptureExpected
impl Sync for CaptureExpected
impl Unpin for CaptureExpected
impl UnsafeUnpin for CaptureExpected
impl UnwindSafe for CaptureExpected
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