1 2 3 4 5 6 7 8 9 10 11 12
use super::parts::BranchCommit; #[derive(Deserialize, Debug)] pub struct BranchPayload { commit: BranchCommit, } impl BranchPayload { pub fn sha(&self) -> &str { &self.commit.sha } }