Struct bsp_types::BuildTargetCompile
source · [−]pub struct BuildTargetCompile { /* 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 BuildTargetCompile
impl BuildTargetCompile
pub fn new(
target: BuildTargetIdentifier,
origin_id: Option<String>,
arguments: Option<String>
) -> 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.
Trait Implementations
sourceimpl Clone for BuildTargetCompile
impl Clone for BuildTargetCompile
sourcefn clone(&self) -> BuildTargetCompile
fn clone(&self) -> BuildTargetCompile
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 BuildTargetCompile
impl Debug for BuildTargetCompile
sourceimpl<'de> Deserialize<'de> for BuildTargetCompile
impl<'de> Deserialize<'de> for BuildTargetCompile
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<BuildTargetCompile> for BuildTargetCompile
impl PartialEq<BuildTargetCompile> for BuildTargetCompile
sourcefn eq(&self, other: &BuildTargetCompile) -> bool
fn eq(&self, other: &BuildTargetCompile) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BuildTargetCompile) -> bool
fn ne(&self, other: &BuildTargetCompile) -> bool
This method tests for !=.
sourceimpl Serialize for BuildTargetCompile
impl Serialize for BuildTargetCompile
impl Eq for BuildTargetCompile
impl StructuralEq for BuildTargetCompile
impl StructuralPartialEq for BuildTargetCompile
Auto Trait Implementations
impl RefUnwindSafe for BuildTargetCompile
impl Send for BuildTargetCompile
impl Sync for BuildTargetCompile
impl Unpin for BuildTargetCompile
impl UnwindSafe for BuildTargetCompile
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