pub struct EntryFunctionId {
pub module: MoveModuleId,
pub name: Identifier,
}Expand description
An entry function identifier (address::module::function).
Fields§
§module: MoveModuleIdThe module containing the function.
name: IdentifierThe function name.
Implementations§
Source§impl EntryFunctionId
impl EntryFunctionId
Sourcepub fn new(module: MoveModuleId, name: Identifier) -> Self
pub fn new(module: MoveModuleId, name: Identifier) -> Self
Creates a new entry function ID.
Sourcepub fn from_str_strict(s: &str) -> AptosResult<Self>
pub fn from_str_strict(s: &str) -> AptosResult<Self>
Parses an entry function ID from a string (e.g., “0x1::coin::transfer”).
§Errors
Returns an error if the string is not in the format address::module::function, the address
is invalid, or the module or function name is not a valid identifier.
Trait Implementations§
Source§impl Clone for EntryFunctionId
impl Clone for EntryFunctionId
Source§fn clone(&self) -> EntryFunctionId
fn clone(&self) -> EntryFunctionId
Returns a duplicate 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 EntryFunctionId
impl Debug for EntryFunctionId
Source§impl<'de> Deserialize<'de> for EntryFunctionId
impl<'de> Deserialize<'de> for EntryFunctionId
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 EntryFunctionId
impl Display for EntryFunctionId
Source§impl FromStr for EntryFunctionId
impl FromStr for EntryFunctionId
Source§impl Hash for EntryFunctionId
impl Hash for EntryFunctionId
Source§impl PartialEq for EntryFunctionId
impl PartialEq for EntryFunctionId
Source§impl Serialize for EntryFunctionId
impl Serialize for EntryFunctionId
impl Eq for EntryFunctionId
impl StructuralPartialEq for EntryFunctionId
Auto Trait Implementations§
impl Freeze for EntryFunctionId
impl RefUnwindSafe for EntryFunctionId
impl Send for EntryFunctionId
impl Sync for EntryFunctionId
impl Unpin for EntryFunctionId
impl UnwindSafe for EntryFunctionId
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMoveArg for Twhere
T: Serialize,
impl<T> IntoMoveArg for Twhere
T: Serialize,
Source§fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
Converts this value into BCS-encoded bytes. Read more
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.