Struct marine::SecurityTetraplet
source · 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> ) -> 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 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<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 for SecurityTetraplet
impl PartialEq 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
impl Eq 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<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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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.