Struct bsp_types::BuildTargetResources
source · [−]pub struct BuildTargetResources { /* private fields */ }Expand description
The build target resources request is sent from the client to the server to query for the list of resources of a given list of build targets.
A resource is a data dependency required to be present in the runtime classpath when a build target is run or executed. The server communicates during the initialize handshake whether this method is supported or not.
This request can be used by a client to highlight the resources in a project view, for example.
Implementations
sourceimpl BuildTargetResources
impl BuildTargetResources
pub fn new(targets: Vec<BuildTargetIdentifier>) -> Self
sourcepub fn targets(&self) -> &[BuildTargetIdentifier]
pub fn targets(&self) -> &[BuildTargetIdentifier]
Get a reference to the resources params’s targets.
sourcepub fn set_targets(&mut self, targets: Vec<BuildTargetIdentifier>)
pub fn set_targets(&mut self, targets: Vec<BuildTargetIdentifier>)
Set the resources params’s targets.
sourcepub fn targets_mut(&mut self) -> &mut Vec<BuildTargetIdentifier>
pub fn targets_mut(&mut self) -> &mut Vec<BuildTargetIdentifier>
Get a mutable reference to the resources params’s targets.
Trait Implementations
sourceimpl Clone for BuildTargetResources
impl Clone for BuildTargetResources
sourcefn clone(&self) -> BuildTargetResources
fn clone(&self) -> BuildTargetResources
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 BuildTargetResources
impl Debug for BuildTargetResources
sourceimpl<'de> Deserialize<'de> for BuildTargetResources
impl<'de> Deserialize<'de> for BuildTargetResources
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<BuildTargetResources> for BuildTargetResources
impl PartialEq<BuildTargetResources> for BuildTargetResources
sourcefn eq(&self, other: &BuildTargetResources) -> bool
fn eq(&self, other: &BuildTargetResources) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BuildTargetResources) -> bool
fn ne(&self, other: &BuildTargetResources) -> bool
This method tests for !=.
sourceimpl Serialize for BuildTargetResources
impl Serialize for BuildTargetResources
impl Eq for BuildTargetResources
impl StructuralEq for BuildTargetResources
impl StructuralPartialEq for BuildTargetResources
Auto Trait Implementations
impl RefUnwindSafe for BuildTargetResources
impl Send for BuildTargetResources
impl Sync for BuildTargetResources
impl Unpin for BuildTargetResources
impl UnwindSafe for BuildTargetResources
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