pub struct ContractSuggestion {
pub function: PubFn,
pub suggested_name: String,
pub suggested_tier: u8,
pub reason: String,
}Expand description
A suggestion to create a new contract for a function with no match.
Fields§
§function: PubFnThe unbound function
suggested_name: StringSuggested contract name (e.g., “maxpool-kernel-v1”)
suggested_tier: u8Suggested tier based on module path
reason: StringReason for the suggestion
Trait Implementations§
Source§impl Clone for ContractSuggestion
impl Clone for ContractSuggestion
Source§fn clone(&self) -> ContractSuggestion
fn clone(&self) -> ContractSuggestion
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 moreAuto Trait Implementations§
impl Freeze for ContractSuggestion
impl RefUnwindSafe for ContractSuggestion
impl Send for ContractSuggestion
impl Sync for ContractSuggestion
impl Unpin for ContractSuggestion
impl UnsafeUnpin for ContractSuggestion
impl UnwindSafe for ContractSuggestion
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