pub struct PlaceOrder {
pub package_dir: PathBuf,
pub config: CtlConfig,
pub pin: Option<String>,
pub prefer: Vec<String>,
pub avoid: Vec<String>,
pub allow_emulated: bool,
pub start: bool,
pub dry_run: bool,
pub project_id: Option<String>,
}Expand description
What the operator asked for.
Fields§
§package_dir: PathBufUnpacked signed package directory.
config: CtlConfigInstance configuration.
pin: Option<String>Place on this node or fail naming the constraint.
prefer: Vec<String>Affinity.
avoid: Vec<String>Anti-affinity.
allow_emulated: boolOperator opt-in to emulation (never automatic).
start: boolStart after loading.
dry_run: boolDecide and explain only; dispatch nothing.
project_id: Option<String>Project the workload is placed for. The target’s ingest bridge
delivers a cog’s vectors to this project’s store; None delivers
them to the placing controller’s store. The target refuses the order
unless this controller may place for the project (it is the target
node itself, is listed for the project in the target’s
cog-ingest.json, or is the node of the project’s bound key); the
controller’s signature covers the id but does not by itself prove it.
Implementations§
Source§impl PlaceOrder
impl PlaceOrder
Sourcepub fn check(&self) -> Result<(), PlaneError>
pub fn check(&self) -> Result<(), PlaneError>
Boundary validation.
Trait Implementations§
Source§impl Clone for PlaceOrder
impl Clone for PlaceOrder
Source§impl Debug for PlaceOrder
impl Debug for PlaceOrder
Source§impl<'de> Deserialize<'de> for PlaceOrder
impl<'de> Deserialize<'de> for PlaceOrder
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 PlaceOrder
impl RefUnwindSafe for PlaceOrder
impl Send for PlaceOrder
impl Sync for PlaceOrder
impl Unpin for PlaceOrder
impl UnsafeUnpin for PlaceOrder
impl UnwindSafe for PlaceOrder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more