Struct air::SecurityTetraplet
source · 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§
source§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
sourcepub 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§
source§impl Clone for SecurityTetraplet
impl Clone for SecurityTetraplet
source§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 moresource§impl Debug for SecurityTetraplet
impl Debug for SecurityTetraplet
source§impl Default for SecurityTetraplet
impl Default for SecurityTetraplet
source§fn default() -> SecurityTetraplet
fn default() -> SecurityTetraplet
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecurityTetraplet
impl<'de> Deserialize<'de> for SecurityTetraplet
source§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
source§impl Display for SecurityTetraplet
impl Display for SecurityTetraplet
source§impl Hash for SecurityTetraplet
impl Hash for SecurityTetraplet
source§impl PartialEq<SecurityTetraplet> for SecurityTetraplet
impl PartialEq<SecurityTetraplet> for SecurityTetraplet
source§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 ==
.source§impl Serialize for SecurityTetraplet
impl Serialize for SecurityTetraplet
source§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