pub struct CommandExecutorIdentity {
pub name: String,
pub version: Option<String>,
pub backend: CommandExecutorBackend,
pub platform: String,
pub metadata: RunMetadata,
}Expand description
Executor identity included in capability and execution reports.
Fields§
§name: StringExecutor name.
version: Option<String>Executor version, when available.
backend: CommandExecutorBackendBackend kind.
platform: StringPlatform summary.
metadata: RunMetadataHost-owned metadata.
Implementations§
Source§impl CommandExecutorIdentity
impl CommandExecutorIdentity
Sourcepub fn new(name: impl Into<String>, backend: CommandExecutorBackend) -> Self
pub fn new(name: impl Into<String>, backend: CommandExecutorBackend) -> Self
Constructs an executor identity.
Sourcepub fn local_process() -> Self
pub fn local_process() -> Self
Constructs the identity for LocalCommandExecutor.
Sourcepub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_version(self, version: impl Into<String>) -> Self
Sets executor version.
Sourcepub fn with_metadata(self, metadata: RunMetadata) -> Self
pub fn with_metadata(self, metadata: RunMetadata) -> Self
Sets host-owned metadata.
Trait Implementations§
Source§impl Clone for CommandExecutorIdentity
impl Clone for CommandExecutorIdentity
Source§impl Debug for CommandExecutorIdentity
impl Debug for CommandExecutorIdentity
Source§impl<'de> Deserialize<'de> for CommandExecutorIdentity
impl<'de> Deserialize<'de> for CommandExecutorIdentity
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
impl Eq for CommandExecutorIdentity
Source§impl PartialEq for CommandExecutorIdentity
impl PartialEq for CommandExecutorIdentity
Source§impl Serialize for CommandExecutorIdentity
impl Serialize for CommandExecutorIdentity
impl StructuralPartialEq for CommandExecutorIdentity
Auto Trait Implementations§
impl Freeze for CommandExecutorIdentity
impl RefUnwindSafe for CommandExecutorIdentity
impl Send for CommandExecutorIdentity
impl Sync for CommandExecutorIdentity
impl Unpin for CommandExecutorIdentity
impl UnsafeUnpin for CommandExecutorIdentity
impl UnwindSafe for CommandExecutorIdentity
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<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.