pub struct AdvancedMainPayload {
pub from: String,
pub merged_branch: String,
pub new_main_sha: String,
pub base: String,
pub merged_at: DateTime<Utc>,
pub summary: Option<String>,
}Expand description
Payload for agent.advanced-main messages.
Published by the supervisor after a successful merge to the repository’s
default branch so downstream agents learn the base moved without polling
git directly. The wire shape is flat — the payload fields sit at the top
level of the envelope alongside the "type" discriminator (see
BrokerMessage::AdvancedMain’s #[serde(flatten)]), matching the curl
example the supervisor skill teaches.
All fields are required except summary, which the publishing supervisor
LLM populates with a one-line human-readable description and which
serialises with skip_serializing_if = "Option::is_none".
Fields§
§from: StringWho advanced main — typically "supervisor".
merged_branch: StringThe branch that was just merged.
new_main_sha: StringThe new abbreviated SHA of the default branch (12+ chars by convention; the broker does not validate length or existence).
base: StringThe base branch that advanced — the resolved default-branch name
(typically "main"), carried explicitly so consumers need not look
up the session’s default branch.
merged_at: DateTime<Utc>When the merge landed, as a UTC timestamp.
summary: Option<String>Optional one-line human-readable summary of what merged.
Implementations§
Source§impl AdvancedMainPayload
impl AdvancedMainPayload
Sourcepub fn deterministic_id(&self) -> String
pub fn deterministic_id(&self) -> String
Returns the deterministic dedup id for this advance event.
Convenience wrapper over advanced_main_id using this payload’s
fields. See that function for the canonical input and hashing
contract.
Trait Implementations§
Source§impl Clone for AdvancedMainPayload
impl Clone for AdvancedMainPayload
Source§fn clone(&self) -> AdvancedMainPayload
fn clone(&self) -> AdvancedMainPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdvancedMainPayload
impl Debug for AdvancedMainPayload
Source§impl<'de> Deserialize<'de> for AdvancedMainPayload
impl<'de> Deserialize<'de> for AdvancedMainPayload
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>,
impl Eq for AdvancedMainPayload
Source§impl PartialEq for AdvancedMainPayload
impl PartialEq for AdvancedMainPayload
Source§fn eq(&self, other: &AdvancedMainPayload) -> bool
fn eq(&self, other: &AdvancedMainPayload) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AdvancedMainPayload
impl Serialize for AdvancedMainPayload
impl StructuralPartialEq for AdvancedMainPayload
Auto Trait Implementations§
impl Freeze for AdvancedMainPayload
impl RefUnwindSafe for AdvancedMainPayload
impl Send for AdvancedMainPayload
impl Sync for AdvancedMainPayload
impl Unpin for AdvancedMainPayload
impl UnsafeUnpin for AdvancedMainPayload
impl UnwindSafe for AdvancedMainPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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