Struct coreledger_backend::events::OwnershipTransferred
pub struct OwnershipTransferred {
pub previous_owner: Option<Principal>,
pub new_owner: Option<Principal>,
}
Expand description
Occurs when ownership of a contract changes.
Fields§
§previous_owner: Option<Principal>
Previous owner of the contract.
new_owner: Option<Principal>
New owner of the contract.
Trait Implementations§
§impl CandidType for OwnershipTransferred
impl CandidType for OwnershipTransferred
§impl Clone for OwnershipTransferred
impl Clone for OwnershipTransferred
§fn clone(&self) -> OwnershipTransferred
fn clone(&self) -> OwnershipTransferred
Returns a copy 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 more§impl<'de> Deserialize<'de> for OwnershipTransferred
impl<'de> Deserialize<'de> for OwnershipTransferred
§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
§impl Serialize for OwnershipTransferred
impl Serialize for OwnershipTransferred
Auto Trait Implementations§
impl Freeze for OwnershipTransferred
impl RefUnwindSafe for OwnershipTransferred
impl Send for OwnershipTransferred
impl Sync for OwnershipTransferred
impl Unpin for OwnershipTransferred
impl UnwindSafe for OwnershipTransferred
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