#[non_exhaustive]pub enum ForgeEventKind {
RepoCreated {
repo: Resource,
forge_id: u64,
},
RepoDeleted {
repo: Resource,
forge_id: u64,
},
RepoRenamed {
forge_id: u64,
from: Resource,
to: Resource,
},
RepoTransferred {
forge_id: u64,
from_namespace: Option<Resource>,
to: Resource,
},
RepoArchived {
repo: Resource,
forge_id: u64,
archived: bool,
},
RepoVisibilityChanged {
repo: Resource,
forge_id: u64,
visibility: Visibility,
},
CollaboratorChanged {
repo: Resource,
forge_id: u64,
account: ForgeAccount,
change: MemberChange,
},
OrgMembershipChanged {
namespace: Resource,
account: ForgeAccount,
change: MemberChange,
},
TeamMembershipChanged {
namespace: Resource,
team: String,
account: ForgeAccount,
change: MemberChange,
},
ProtectionChanged {
repo: Option<Resource>,
namespace: Resource,
action: String,
},
InstallationChanged {
namespace: Resource,
installation_id: u64,
change: InstallationChange,
},
}Expand description
What a ForgeEvent reports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RepoCreated
A repository appeared — through the bridge or not (§5.6 unmanaged).
RepoDeleted
A repository was deleted.
RepoRenamed
A repository was renamed within its owner.
Fields
RepoTransferred
A repository moved to another owner.
Fields
RepoArchived
Archived or unarchived.
RepoVisibilityChanged
Visibility changed.
Fields
§
visibility: VisibilityThe new visibility.
CollaboratorChanged
A direct collaborator was added, removed or changed.
OrgMembershipChanged
Someone joined or left the organisation.
TeamMembershipChanged
Someone joined or left a team in the organisation. Distinct from
ForgeEventKind::OrgMembershipChanged: leaving a team does not mean
leaving the organisation.
ProtectionChanged
Branch protection or a ruleset changed. Always worth an inspect:
a weakened rule is the drift that silently removes the guarantee.
Fields
InstallationChanged
The automation installation on a namespace changed.
Trait Implementations§
Source§impl Clone for ForgeEventKind
impl Clone for ForgeEventKind
Source§impl Debug for ForgeEventKind
impl Debug for ForgeEventKind
Source§impl<'de> Deserialize<'de> for ForgeEventKind
impl<'de> Deserialize<'de> for ForgeEventKind
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 ForgeEventKind
Source§impl PartialEq for ForgeEventKind
impl PartialEq for ForgeEventKind
Source§impl Serialize for ForgeEventKind
impl Serialize for ForgeEventKind
impl StructuralPartialEq for ForgeEventKind
Auto Trait Implementations§
impl Freeze for ForgeEventKind
impl RefUnwindSafe for ForgeEventKind
impl Send for ForgeEventKind
impl Sync for ForgeEventKind
impl Unpin for ForgeEventKind
impl UnsafeUnpin for ForgeEventKind
impl UnwindSafe for ForgeEventKind
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