pub struct SendSignalRequest {
pub idempotency_id: Option<String>,
pub key: String,
pub name: String,
pub payload: Map<String, Value>,
}Expand description
Send signal request body.
JSON schema
{
"description": "Send signal request body.",
"type": "object",
"required": [
"key",
"name",
"payload"
],
"properties": {
"idempotency_id": {
"description": "Deduplication ID (1-255 characters): a second signal with the same ID\nis neither stored nor delivered.",
"type": [
"string",
"null"
]
},
"key": {
"description": "Occurrence key, e.g. a commit SHA (1-255 characters).",
"type": "string"
},
"name": {
"description": "Signal name, e.g. `\"ci.pipeline_finished\"` (1-255 characters).",
"type": "string"
},
"payload": {
"description": "JSON payload, validated against the schema of each waiting step.",
"type": "object"
}
}
}
```ignore
</details>Fields§
§idempotency_id: Option<String>Deduplication ID (1-255 characters): a second signal with the same ID is neither stored nor delivered.
key: StringOccurrence key, e.g. a commit SHA (1-255 characters).
name: StringSignal name, e.g. "ci.pipeline_finished" (1-255 characters).
payload: Map<String, Value>JSON payload, validated against the schema of each waiting step.
Implementations§
Source§impl SendSignalRequest
impl SendSignalRequest
pub fn builder() -> SendSignalRequest
Trait Implementations§
Source§impl Clone for SendSignalRequest
impl Clone for SendSignalRequest
Source§impl Debug for SendSignalRequest
impl Debug for SendSignalRequest
Source§impl<'de> Deserialize<'de> for SendSignalRequest
impl<'de> Deserialize<'de> for SendSignalRequest
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<SendSignalRequest> for SendSignalRequest
impl From<SendSignalRequest> for SendSignalRequest
Source§fn from(value: SendSignalRequest) -> Self
fn from(value: SendSignalRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for SendSignalRequest
impl Serialize for SendSignalRequest
Source§impl TryFrom<SendSignalRequest> for SendSignalRequest
impl TryFrom<SendSignalRequest> for SendSignalRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SendSignalRequest) -> Result<Self, ConversionError>
fn try_from(value: SendSignalRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SendSignalRequest
impl RefUnwindSafe for SendSignalRequest
impl Send for SendSignalRequest
impl Sync for SendSignalRequest
impl Unpin for SendSignalRequest
impl UnsafeUnpin for SendSignalRequest
impl UnwindSafe for SendSignalRequest
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