#[non_exhaustive]pub struct Entrypoint {
pub command: Option<Command>,
/* private fields */
}Expand description
The entrypoint for the application.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command: Option<Command>The command to run.
Implementations§
Source§impl Entrypoint
impl Entrypoint
pub fn new() -> Self
Sourcepub fn set_command<T: Into<Option<Command>>>(self, v: T) -> Self
pub fn set_command<T: Into<Option<Command>>>(self, v: T) -> Self
Sets the value of command.
Note that all the setters affecting command are mutually
exclusive.
Trait Implementations§
Source§impl Clone for Entrypoint
impl Clone for Entrypoint
Source§fn clone(&self) -> Entrypoint
fn clone(&self) -> Entrypoint
Returns a duplicate 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 Entrypoint
impl Debug for Entrypoint
Source§impl Default for Entrypoint
impl Default for Entrypoint
Source§fn default() -> Entrypoint
fn default() -> Entrypoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for Entrypoint
impl PartialEq for Entrypoint
impl StructuralPartialEq for Entrypoint
Auto Trait Implementations§
impl Freeze for Entrypoint
impl RefUnwindSafe for Entrypoint
impl Send for Entrypoint
impl Sync for Entrypoint
impl Unpin for Entrypoint
impl UnwindSafe for Entrypoint
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