#[non_exhaustive]pub struct RoleChange {
pub account: ForgeAccount,
pub from: ForgeRole,
pub to: ForgeRole,
pub outcome: RoleOutcome,
}Expand description
What happened to one person in crate::Forge::apply_roles.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account: ForgeAccountWho.
from: ForgeRoleRole before.
to: ForgeRoleRole requested.
outcome: RoleOutcomeWhat the forge did.
Implementations§
Source§impl RoleChange
impl RoleChange
Sourcepub fn new(
account: ForgeAccount,
from: ForgeRole,
to: ForgeRole,
outcome: RoleOutcome,
) -> Self
pub fn new( account: ForgeAccount, from: ForgeRole, to: ForgeRole, outcome: RoleOutcome, ) -> Self
A change of account from from to to, with its outcome.
Trait Implementations§
Source§impl Clone for RoleChange
impl Clone for RoleChange
Source§impl Debug for RoleChange
impl Debug for RoleChange
Source§impl<'de> Deserialize<'de> for RoleChange
impl<'de> Deserialize<'de> for RoleChange
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
impl Eq for RoleChange
Source§impl PartialEq for RoleChange
impl PartialEq for RoleChange
Source§impl Serialize for RoleChange
impl Serialize for RoleChange
impl StructuralPartialEq for RoleChange
Auto Trait Implementations§
impl Freeze for RoleChange
impl RefUnwindSafe for RoleChange
impl Send for RoleChange
impl Sync for RoleChange
impl Unpin for RoleChange
impl UnsafeUnpin for RoleChange
impl UnwindSafe for RoleChange
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