Struct pueue_lib::network::message::AddMessage
source · pub struct AddMessage {
pub command: String,
pub path: PathBuf,
pub envs: HashMap<String, String>,
pub start_immediately: bool,
pub stashed: bool,
pub group: String,
pub enqueue_at: Option<DateTime<Local>>,
pub dependencies: Vec<usize>,
pub priority: Option<i32>,
pub label: Option<String>,
pub print_task_id: bool,
}
Fields§
§command: String
§path: PathBuf
§envs: HashMap<String, String>
§start_immediately: bool
§stashed: bool
§group: String
§enqueue_at: Option<DateTime<Local>>
§dependencies: Vec<usize>
§priority: Option<i32>
§label: Option<String>
§print_task_id: bool
Trait Implementations§
source§impl Clone for AddMessage
impl Clone for AddMessage
source§fn clone(&self) -> AddMessage
fn clone(&self) -> AddMessage
Returns a copy of the value. Read more
1.0.0 · 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 AddMessage
impl Debug for AddMessage
We use a custom Debug
implementation for AddMessage, as the envs
field just has
too much info in it and makes the log output much too verbose.
Furthermore, there might be secrets in the environment, resulting in a possible leak if users copy-paste their log output for debugging.
source§impl<'de> Deserialize<'de> for AddMessage
impl<'de> Deserialize<'de> for AddMessage
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<AddMessage> for Message
impl From<AddMessage> for Message
source§fn from(message: AddMessage) -> Self
fn from(message: AddMessage) -> Self
Converts to this type from the input type.
source§impl PartialEq for AddMessage
impl PartialEq for AddMessage
source§fn eq(&self, other: &AddMessage) -> bool
fn eq(&self, other: &AddMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AddMessage
impl Serialize for AddMessage
impl Eq for AddMessage
impl StructuralPartialEq for AddMessage
Auto Trait Implementations§
impl Freeze for AddMessage
impl RefUnwindSafe for AddMessage
impl Send for AddMessage
impl Sync for AddMessage
impl Unpin for AddMessage
impl UnwindSafe for AddMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.