Struct air_test_utils::SecurityTetraplet
pub struct SecurityTetraplet {
pub peer_pk: String,
pub service_id: String,
pub function_name: String,
pub json_path: String,
}
Expand description
Describes an origin that set corresponding value.
Fields§
§peer_pk: String
Id of a peer where corresponding value was set.
service_id: String
Id of a service that set corresponding value.
function_name: String
Name of a function that returned corresponding value.
json_path: String
Value was produced by applying this json_path
to the output from call_service
.
Implementations§
§impl SecurityTetraplet
impl SecurityTetraplet
pub fn new( peer_pk: impl Into<String>, service_id: impl Into<String>, function_name: impl Into<String>, json_path: impl Into<String> ) -> SecurityTetraplet
pub fn literal_tetraplet(init_peer_id: impl Into<String>) -> SecurityTetraplet
pub fn literal_tetraplet(init_peer_id: impl Into<String>) -> SecurityTetraplet
Create a tetraplet for string literals defined in the script
such as variable here (call ("" "") "" ["variable_1"])
.
pub fn from_triplet(triplet: ResolvedTriplet) -> SecurityTetraplet
pub fn add_lambda(&mut self, json_path: &str)
Trait Implementations§
§impl Clone for SecurityTetraplet
impl Clone for SecurityTetraplet
§fn clone(&self) -> SecurityTetraplet
fn clone(&self) -> SecurityTetraplet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SecurityTetraplet
impl Debug for SecurityTetraplet
§impl Default for SecurityTetraplet
impl Default for SecurityTetraplet
§fn default() -> SecurityTetraplet
fn default() -> SecurityTetraplet
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for SecurityTetraplet
impl<'de> Deserialize<'de> for SecurityTetraplet
§fn deserialize<__D>(
__deserializer: __D
) -> Result<SecurityTetraplet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SecurityTetraplet, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for SecurityTetraplet
impl Display for SecurityTetraplet
§impl Hash for SecurityTetraplet
impl Hash for SecurityTetraplet
§impl PartialEq<SecurityTetraplet> for SecurityTetraplet
impl PartialEq<SecurityTetraplet> for SecurityTetraplet
§fn eq(&self, other: &SecurityTetraplet) -> bool
fn eq(&self, other: &SecurityTetraplet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for SecurityTetraplet
impl Serialize for SecurityTetraplet
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SecurityTetraplet
impl StructuralEq for SecurityTetraplet
impl StructuralPartialEq for SecurityTetraplet
Auto Trait Implementations§
impl RefUnwindSafe for SecurityTetraplet
impl Send for SecurityTetraplet
impl Sync for SecurityTetraplet
impl Unpin for SecurityTetraplet
impl UnwindSafe for SecurityTetraplet
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.