pub struct SecurityTetraplet {
pub peer_pk: String,
pub service_id: String,
pub function_name: String,
pub lens: 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.
lens: String
Value was produced by applying this lens
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>, lens: impl Into<String>, ) -> Self
Sourcepub fn literal_tetraplet(init_peer_id: impl Into<String>) -> Self
pub fn literal_tetraplet(init_peer_id: impl Into<String>) -> Self
Create a tetraplet for string literals defined in the script
such as variable here (call ("" "") "" ["variable_1"])
.
pub fn add_lens(&mut self, lens: &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<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 Display for SecurityTetraplet
impl Display for SecurityTetraplet
Source§impl Hash for SecurityTetraplet
impl Hash for SecurityTetraplet
Source§impl PartialEq for SecurityTetraplet
impl PartialEq for SecurityTetraplet
Source§impl Serialize for SecurityTetraplet
impl Serialize for SecurityTetraplet
impl Eq for SecurityTetraplet
impl StructuralPartialEq for SecurityTetraplet
Auto Trait Implementations§
impl Freeze for SecurityTetraplet
impl RefUnwindSafe for SecurityTetraplet
impl Send for SecurityTetraplet
impl Sync for SecurityTetraplet
impl Unpin for SecurityTetraplet
impl UnwindSafe for SecurityTetraplet
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