pub struct EventConfig { /* private fields */ }
Expand description
The configuration arguments to the #[ink::event(..)]
attribute macro.
Implementations§
Source§impl EventConfig
impl EventConfig
Source§impl EventConfig
impl EventConfig
Sourcepub fn new(
anonymous: bool,
signature_topic: Option<SignatureTopic>,
name: Option<String>,
) -> Self
pub fn new( anonymous: bool, signature_topic: Option<SignatureTopic>, name: Option<String>, ) -> Self
Construct a new EventConfig
.
Sourcepub fn signature_topic(&self) -> Option<SignatureTopic>
pub fn signature_topic(&self) -> Option<SignatureTopic>
Returns the manually specified signature topic.
Trait Implementations§
Source§impl Debug for EventConfig
impl Debug for EventConfig
Source§impl PartialEq for EventConfig
impl PartialEq for EventConfig
Source§impl TryFrom<&[Attribute]> for EventConfig
impl TryFrom<&[Attribute]> for EventConfig
Source§impl TryFrom<AttributeArgs> for EventConfig
impl TryFrom<AttributeArgs> for EventConfig
impl Eq for EventConfig
impl StructuralPartialEq for EventConfig
Auto Trait Implementations§
impl Freeze for EventConfig
impl RefUnwindSafe for EventConfig
impl Send for EventConfig
impl Sync for EventConfig
impl Unpin for EventConfig
impl UnwindSafe for EventConfig
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more