pub struct AgentSyncResponse {
pub commands_url: Option<String>,
pub current_state: Option<Value>,
pub target: Option<Value>,
}Expand description
AgentSyncResponse
JSON schema
{
"type": "object",
"properties": {
"commandsUrl": {
"description": "Public URL for the commands API. Cloud-deployed workers use this\nto poll for pending commands instead of the agent's local sync URL.",
"type": [
"string",
"null"
]
},
"currentState": {
"description": "Authoritative deployment state from the manager.\n\nReturned when a pull deployment attaches with an empty local state while\nthe manager already has imported or previously reconciled state."
},
"target": {}
}
}Fields§
§commands_url: Option<String>Public URL for the commands API. Cloud-deployed workers use this to poll for pending commands instead of the agent’s local sync URL.
current_state: Option<Value>Authoritative deployment state from the manager.
Returned when a pull deployment attaches with an empty local state while the manager already has imported or previously reconciled state.
target: Option<Value>Implementations§
Source§impl AgentSyncResponse
impl AgentSyncResponse
pub fn builder() -> AgentSyncResponse
Trait Implementations§
Source§impl Clone for AgentSyncResponse
impl Clone for AgentSyncResponse
Source§fn clone(&self) -> AgentSyncResponse
fn clone(&self) -> AgentSyncResponse
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 AgentSyncResponse
impl Debug for AgentSyncResponse
Source§impl Default for AgentSyncResponse
impl Default for AgentSyncResponse
Source§impl<'de> Deserialize<'de> for AgentSyncResponse
impl<'de> Deserialize<'de> for AgentSyncResponse
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
Source§impl From<&AgentSyncResponse> for AgentSyncResponse
impl From<&AgentSyncResponse> for AgentSyncResponse
Source§fn from(value: &AgentSyncResponse) -> Self
fn from(value: &AgentSyncResponse) -> Self
Converts to this type from the input type.
Source§impl From<AgentSyncResponse> for AgentSyncResponse
impl From<AgentSyncResponse> for AgentSyncResponse
Source§fn from(value: AgentSyncResponse) -> Self
fn from(value: AgentSyncResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for AgentSyncResponse
impl Serialize for AgentSyncResponse
Source§impl TryFrom<AgentSyncResponse> for AgentSyncResponse
impl TryFrom<AgentSyncResponse> for AgentSyncResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AgentSyncResponse) -> Result<Self, ConversionError>
fn try_from(value: AgentSyncResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AgentSyncResponse
impl RefUnwindSafe for AgentSyncResponse
impl Send for AgentSyncResponse
impl Sync for AgentSyncResponse
impl Unpin for AgentSyncResponse
impl UnsafeUnpin for AgentSyncResponse
impl UnwindSafe for AgentSyncResponse
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