pub struct RemoteMethod {
pub interface: Option<&'static str>,
pub version: &'static str,
pub name: &'static str,
pub entrypoint: ContractEntrypointID,
pub effect: Option<MethodEffect>,
}Expand description
The identity of one interface method, fixed when its interface compiles.
Fields§
§interface: Option<&'static str>Interface name, or None for an unnamed interface.
version: &'static strInterface version the entrypoint was derived from.
name: &'static strMethod name.
entrypoint: ContractEntrypointIDEntrypoint selector.
effect: Option<MethodEffect>Declared effect, or None when the interface declares none.
Implementations§
Source§impl RemoteMethod
impl RemoteMethod
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Whether the declaration permits simulating instead of submitting. An undeclared effect is never treated as read-only.
Trait Implementations§
Source§impl Clone for RemoteMethod
impl Clone for RemoteMethod
Source§fn clone(&self) -> RemoteMethod
fn clone(&self) -> RemoteMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RemoteMethod
Source§impl Debug for RemoteMethod
impl Debug for RemoteMethod
impl Eq for RemoteMethod
Source§impl PartialEq for RemoteMethod
impl PartialEq for RemoteMethod
impl StructuralPartialEq for RemoteMethod
Auto Trait Implementations§
impl Freeze for RemoteMethod
impl RefUnwindSafe for RemoteMethod
impl Send for RemoteMethod
impl Sync for RemoteMethod
impl Unpin for RemoteMethod
impl UnsafeUnpin for RemoteMethod
impl UnwindSafe for RemoteMethod
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