pub struct SyncResponse {
pub current_state: Option<DeploymentState>,
pub target: Option<TargetDeployment>,
pub commands_url: Option<String>,
}Expand description
Response from the manager to the agent sync request.
Fields§
§current_state: Option<DeploymentState>Authoritative deployment state from the manager.
Pull agents use this to hydrate local state when attaching to an already-imported deployment. Absent means the agent’s local state is already authoritative or no state has been established yet.
target: Option<TargetDeployment>Target deployment the agent should converge toward. None means no changes needed.
commands_url: Option<String>Public URL for the commands API (e.g. https://manager.example.com/v1).
Cloud-deployed workers use this to poll for pending commands.
When absent, the agent falls back to its sync URL.
Trait Implementations§
Source§impl Clone for SyncResponse
impl Clone for SyncResponse
Source§fn clone(&self) -> SyncResponse
fn clone(&self) -> SyncResponse
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 SyncResponse
impl Debug for SyncResponse
Source§impl<'de> Deserialize<'de> for SyncResponse
impl<'de> Deserialize<'de> for SyncResponse
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 SyncResponse
impl !RefUnwindSafe for SyncResponse
impl Send for SyncResponse
impl Sync for SyncResponse
impl Unpin for SyncResponse
impl UnsafeUnpin for SyncResponse
impl !UnwindSafe for SyncResponse
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