pub struct ServiceMethod {
pub name: String,
pub mode: MethodMode,
}Expand description
One declared service method; arguments and return types are not expanded.
Fields§
§name: StringDecoded Candid method name, preserving spaces and escaped characters.
mode: MethodModeDeclared call mode, including oneway.
Implementations§
Source§impl ServiceMethod
impl ServiceMethod
Sourcepub fn as_export(&self) -> ExportedMethod<'_>
pub fn as_export(&self) -> ExportedMethod<'_>
Project this declaration to its Wasm name/mode for caller comparisons. This explicitly maps oneway to the update namespace.
Trait Implementations§
Source§impl Clone for ServiceMethod
impl Clone for ServiceMethod
Source§impl Debug for ServiceMethod
impl Debug for ServiceMethod
impl Eq for ServiceMethod
Source§impl PartialEq for ServiceMethod
impl PartialEq for ServiceMethod
impl StructuralPartialEq for ServiceMethod
Auto Trait Implementations§
impl Freeze for ServiceMethod
impl RefUnwindSafe for ServiceMethod
impl Send for ServiceMethod
impl Sync for ServiceMethod
impl Unpin for ServiceMethod
impl UnsafeUnpin for ServiceMethod
impl UnwindSafe for ServiceMethod
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.