Struct wasmbus_rpc::core::WasmCloudEntity
source · [−]pub struct WasmCloudEntity {
pub public_key: String,
pub link_name: String,
pub contract_id: CapabilityContractId,
}
Fields
public_key: String
link_name: String
contract_id: CapabilityContractId
Implementations
sourceimpl WasmCloudEntity
impl WasmCloudEntity
sourcepub fn new_actor<T: ToString>(public_key: T) -> RpcResult<WasmCloudEntity>
pub fn new_actor<T: ToString>(public_key: T) -> RpcResult<WasmCloudEntity>
constructor for actor entity
sourcepub fn new_provider<T1: ToString, T2: ToString>(
contract_id: T1,
link_name: T2
) -> RpcResult<WasmCloudEntity>
pub fn new_provider<T1: ToString, T2: ToString>(
contract_id: T1,
link_name: T2
) -> RpcResult<WasmCloudEntity>
constructor for capability provider entity all parameters are required
sourcepub fn public_key(&self) -> String
pub fn public_key(&self) -> String
Returns the unique (public) key of the entity
sourcepub fn is_provider(&self) -> bool
pub fn is_provider(&self) -> bool
returns true if this entity refers to a provider
Trait Implementations
sourceimpl Clone for WasmCloudEntity
impl Clone for WasmCloudEntity
sourcefn clone(&self) -> WasmCloudEntity
fn clone(&self) -> WasmCloudEntity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WasmCloudEntity
impl Debug for WasmCloudEntity
sourceimpl Default for WasmCloudEntity
impl Default for WasmCloudEntity
sourcefn default() -> WasmCloudEntity
fn default() -> WasmCloudEntity
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WasmCloudEntity
impl<'de> Deserialize<'de> for WasmCloudEntity
sourcefn 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
sourceimpl Display for WasmCloudEntity
impl Display for WasmCloudEntity
sourceimpl PartialEq<WasmCloudEntity> for WasmCloudEntity
impl PartialEq<WasmCloudEntity> for WasmCloudEntity
sourcefn eq(&self, other: &WasmCloudEntity) -> bool
fn eq(&self, other: &WasmCloudEntity) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WasmCloudEntity) -> bool
fn ne(&self, other: &WasmCloudEntity) -> bool
This method tests for !=
.
sourceimpl Serialize for WasmCloudEntity
impl Serialize for WasmCloudEntity
sourceimpl TryFrom<&'_ str> for WasmCloudEntity
impl TryFrom<&'_ str> for WasmCloudEntity
sourceimpl TryFrom<String> for WasmCloudEntity
impl TryFrom<String> for WasmCloudEntity
impl Eq for WasmCloudEntity
impl StructuralEq for WasmCloudEntity
impl StructuralPartialEq for WasmCloudEntity
Auto Trait Implementations
impl RefUnwindSafe for WasmCloudEntity
impl Send for WasmCloudEntity
impl Sync for WasmCloudEntity
impl Unpin for WasmCloudEntity
impl UnwindSafe for WasmCloudEntity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more