pub struct SyncRequest {
pub project: String,
pub name: String,
pub variant: String,
pub graph: PlanGraph,
pub source_path: Option<String>,
pub content_hash: Option<String>,
pub force: bool,
}Expand description
Request bundle for crate::ports::Planner::sync_plan: register or
update the variant variant of the plan line (project, name).
Fields§
§project: String§name: String§variant: String§graph: PlanGraph§source_path: Option<String>Where the graph was read from (relative to the project root), if it
came from a plan file. None for an inline graph.
content_hash: Option<String>Hash of the source file’s bytes. None for an inline graph, which is
then identified by its canonical graph hash.
force: boolPassed to the revision when the content changed: release live locks
of removed deliverables instead of refusing. Defaults to false.
Implementations§
Source§impl SyncRequest
impl SyncRequest
pub fn new( project: impl Into<String>, name: impl Into<String>, variant: impl Into<String>, graph: PlanGraph, ) -> Self
Sourcepub fn with_source_path(self, path: impl Into<String>) -> Self
pub fn with_source_path(self, path: impl Into<String>) -> Self
Record the plan file the graph was read from.
Sourcepub fn with_content_hash(self, hash: impl Into<String>) -> Self
pub fn with_content_hash(self, hash: impl Into<String>) -> Self
Record the hash of the plan file’s bytes.
Trait Implementations§
Source§impl Clone for SyncRequest
impl Clone for SyncRequest
Auto Trait Implementations§
impl Freeze for SyncRequest
impl RefUnwindSafe for SyncRequest
impl Send for SyncRequest
impl Sync for SyncRequest
impl Unpin for SyncRequest
impl UnsafeUnpin for SyncRequest
impl UnwindSafe for SyncRequest
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