[−][src]Struct ink_metadata::ReturnTypeSpec
Describes the return type of a contract message.
Implementations
impl ReturnTypeSpec
[src]
pub fn new<T>(ty: T) -> Self where
T: Into<Option<TypeSpec>>,
[src]
T: Into<Option<TypeSpec>>,
Creates a new return type specification from the given type or None
.
Examples
ReturnTypeSpec::new(None); // no return type; ReturnTypeSpec::new(TypeSpec::new::<i32>()); // return type of `i32`
impl<F> ReturnTypeSpec<F> where
F: Form,
[src]
F: Form,
Trait Implementations
impl<F: Debug + Form> Debug for ReturnTypeSpec<F>
[src]
impl<'de, F: Form> Deserialize<'de> for ReturnTypeSpec<F> where
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
[src]
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<F: Eq + Form> Eq for ReturnTypeSpec<F>
[src]
impl IntoCompact for ReturnTypeSpec
[src]
type Output = ReturnTypeSpec<CompactForm>
The compact version of Self
.
fn into_compact(self, registry: &mut Registry) -> Self::Output
[src]
impl<F: PartialEq + Form> PartialEq<ReturnTypeSpec<F>> for ReturnTypeSpec<F>
[src]
fn eq(&self, other: &ReturnTypeSpec<F>) -> bool
[src]
fn ne(&self, other: &ReturnTypeSpec<F>) -> bool
[src]
impl<F: Form> Serialize for ReturnTypeSpec<F> where
F::Type: Serialize,
F::String: Serialize,
[src]
F::Type: Serialize,
F::String: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<F: Form> StructuralEq for ReturnTypeSpec<F>
[src]
impl<F: Form> StructuralPartialEq for ReturnTypeSpec<F>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for ReturnTypeSpec<F> where
<F as Form>::String: RefUnwindSafe,
<F as Form>::Type: RefUnwindSafe,
<F as Form>::String: RefUnwindSafe,
<F as Form>::Type: RefUnwindSafe,
impl<F> Send for ReturnTypeSpec<F> where
<F as Form>::String: Send,
<F as Form>::Type: Send,
<F as Form>::String: Send,
<F as Form>::Type: Send,
impl<F> Sync for ReturnTypeSpec<F> where
<F as Form>::String: Sync,
<F as Form>::Type: Sync,
<F as Form>::String: Sync,
<F as Form>::Type: Sync,
impl<F> Unpin for ReturnTypeSpec<F> where
<F as Form>::String: Unpin,
<F as Form>::Type: Unpin,
<F as Form>::String: Unpin,
<F as Form>::Type: Unpin,
impl<F> UnwindSafe for ReturnTypeSpec<F> where
<F as Form>::String: UnwindSafe,
<F as Form>::Type: UnwindSafe,
<F as Form>::String: UnwindSafe,
<F as Form>::Type: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,