pub struct SendFlightRequest {
pub body: String,
pub flags: Option<BTreeMap<String, bool>>,
pub pipeline: Option<String>,
pub to: Option<String>,
}Expand description
Exactly one of pipeline and to must be given, and flags are only accepted alongside a
pipeline, because a pipeline is what declares them.
Neither is marked required here because JSON Schema cannot state “exactly one of these”
in a way this generator supports. The Tower enforces it and answers 400 — so a client
that satisfies this schema can still be rejected.
Fields§
§body: StringWhat the receiving agent is being asked to do.
flags: Option<BTreeMap<String, bool>>Flag overrides, keyed by flag name. Unset flags take their declared default.
pipeline: Option<String>Name of the pipeline to start.
to: Option<String>Name of an entry = true agent to send to directly.
Trait Implementations§
Source§impl Clone for SendFlightRequest
impl Clone for SendFlightRequest
Source§impl Debug for SendFlightRequest
impl Debug for SendFlightRequest
Source§impl<'de> Deserialize<'de> for SendFlightRequest
impl<'de> Deserialize<'de> for SendFlightRequest
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 PartialEq for SendFlightRequest
impl PartialEq for SendFlightRequest
Source§impl Serialize for SendFlightRequest
impl Serialize for SendFlightRequest
impl StructuralPartialEq for SendFlightRequest
Auto Trait Implementations§
impl Freeze for SendFlightRequest
impl RefUnwindSafe for SendFlightRequest
impl Send for SendFlightRequest
impl Sync for SendFlightRequest
impl Unpin for SendFlightRequest
impl UnsafeUnpin for SendFlightRequest
impl UnwindSafe for SendFlightRequest
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