Struct bsp_types::BuildTargetRun
source · [−]pub struct BuildTargetRun { /* private fields */ }Expand description
The run request is sent from the client to the server to run a build target. The server communicates during the initialize handshake whether this method is supported or not.
Implementations
sourceimpl BuildTargetRun
impl BuildTargetRun
pub fn new(
target: BuildTargetIdentifier,
origin_id: Option<String>,
arguments: Option<String>,
data_kind: Option<String>,
data: Option<Value>
) -> Self
pub fn new_simple(target: BuildTargetIdentifier) -> Self
sourcepub fn target(&self) -> &BuildTargetIdentifier
pub fn target(&self) -> &BuildTargetIdentifier
Get a reference to the bsp btrun params’s target.
sourcepub fn set_target(&mut self, target: BuildTargetIdentifier)
pub fn set_target(&mut self, target: BuildTargetIdentifier)
Set the bsp btrun params’s target.
sourcepub fn origin_id(&self) -> Option<&String>
pub fn origin_id(&self) -> Option<&String>
Get a reference to the bsp btrun params’s origin id.
sourcepub fn set_origin_id(&mut self, origin_id: Option<String>)
pub fn set_origin_id(&mut self, origin_id: Option<String>)
Set the bsp btrun params’s origin id.
sourcepub fn arguments(&self) -> Option<&String>
pub fn arguments(&self) -> Option<&String>
Get a reference to the bsp btrun params’s arguments.
sourcepub fn set_arguments(&mut self, arguments: Option<String>)
pub fn set_arguments(&mut self, arguments: Option<String>)
Set the bsp btrun params’s arguments.
sourcepub fn data_kind(&self) -> Option<&String>
pub fn data_kind(&self) -> Option<&String>
Get a reference to the bsp btrun params’s data kind.
sourcepub fn set_data_kind(&mut self, data_kind: Option<String>)
pub fn set_data_kind(&mut self, data_kind: Option<String>)
Set the bsp btrun params’s data kind.
Trait Implementations
sourceimpl Clone for BuildTargetRun
impl Clone for BuildTargetRun
sourcefn clone(&self) -> BuildTargetRun
fn clone(&self) -> BuildTargetRun
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BuildTargetRun
impl Debug for BuildTargetRun
sourceimpl<'de> Deserialize<'de> for BuildTargetRun
impl<'de> Deserialize<'de> for BuildTargetRun
sourcefn 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
sourceimpl PartialEq<BuildTargetRun> for BuildTargetRun
impl PartialEq<BuildTargetRun> for BuildTargetRun
sourcefn eq(&self, other: &BuildTargetRun) -> bool
fn eq(&self, other: &BuildTargetRun) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BuildTargetRun) -> bool
fn ne(&self, other: &BuildTargetRun) -> bool
This method tests for !=.
sourceimpl Serialize for BuildTargetRun
impl Serialize for BuildTargetRun
impl Eq for BuildTargetRun
impl StructuralEq for BuildTargetRun
impl StructuralPartialEq for BuildTargetRun
Auto Trait Implementations
impl RefUnwindSafe for BuildTargetRun
impl Send for BuildTargetRun
impl Sync for BuildTargetRun
impl Unpin for BuildTargetRun
impl UnwindSafe for BuildTargetRun
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more