pub struct SyncReq {
pub actor: Option<String>,
pub direction: Option<String>,
pub kind: Option<String>,
pub run: Option<bool>,
pub source: Option<Box<EndpointReq>>,
pub target: Option<Box<EndpointReq>>,
pub trigger: Option<String>,
}Fields§
§actor: Option<String>Actor is the identity the sync writes as, used as the loop guard so its own writes do not re-trigger it. Defaults to the deployment’s GIT_SYNC_ACTOR.
direction: Option<String>Direction is both (the default), pull, push or off.
kind: Option<String>Kind is what is being synced. Only "git" today, which is also the default.
run: Option<bool>Run reconciles once immediately after the upsert, in the background.
source: Option<Box<EndpointReq>>Source is the upstream end. Required.
target: Option<Box<EndpointReq>>Target is the downstream end. Optional for git: a native repository named after the source is derived when it is omitted.
trigger: Option<String>Trigger is what starts a reconcile: webhook (the default), poll or manual.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncReq
impl<'de> Deserialize<'de> for SyncReq
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 StructuralPartialEq for SyncReq
Auto Trait Implementations§
impl Freeze for SyncReq
impl RefUnwindSafe for SyncReq
impl Send for SyncReq
impl Sync for SyncReq
impl Unpin for SyncReq
impl UnsafeUnpin for SyncReq
impl UnwindSafe for SyncReq
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