pub struct PluginGateInput {
pub protocol_version: u32,
pub schema_version: u32,
pub trigger: PluginTrigger,
pub config: PluginConfig,
pub repo_root: String,
pub base_ref: String,
}Expand description
The JSON object written to plugin stdin on --gate.
Fields§
§protocol_version: u32Must equal PLUGIN_PROTOCOL_VERSION.
schema_version: u32Mirrors KLASP_GATE_SCHEMA for plugins that inspect it.
trigger: PluginTriggerCurrent git event.
config: PluginConfigConfig block forwarded from klasp.toml.
repo_root: StringAbsolute path to the repo root.
base_ref: StringMerge-base ref (same value exported as KLASP_BASE_REF).
Implementations§
Source§impl PluginGateInput
impl PluginGateInput
Sourcepub fn new(
trigger: PluginTrigger,
config: PluginConfig,
repo_root: &Path,
base_ref: &str,
) -> Self
pub fn new( trigger: PluginTrigger, config: PluginConfig, repo_root: &Path, base_ref: &str, ) -> Self
Build a PluginGateInput from gate runtime data.
Trait Implementations§
Source§impl Clone for PluginGateInput
impl Clone for PluginGateInput
Source§fn clone(&self) -> PluginGateInput
fn clone(&self) -> PluginGateInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginGateInput
impl Debug for PluginGateInput
Source§impl<'de> Deserialize<'de> for PluginGateInput
impl<'de> Deserialize<'de> for PluginGateInput
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
Auto Trait Implementations§
impl Freeze for PluginGateInput
impl RefUnwindSafe for PluginGateInput
impl Send for PluginGateInput
impl Sync for PluginGateInput
impl Unpin for PluginGateInput
impl UnsafeUnpin for PluginGateInput
impl UnwindSafe for PluginGateInput
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