Struct bsp_types::DependencyModule
source · [−]pub struct DependencyModule { /* private fields */ }Implementations
sourceimpl DependencyModule
impl DependencyModule
pub fn new(
name: String,
version: String,
data_kind: Option<String>,
data: Option<Value>
) -> Self
pub fn new_simple(name: String, version: String) -> Self
sourcepub fn set_version(&mut self, version: String)
pub fn set_version(&mut self, version: String)
Set the bsp btdependency module’s version.
sourcepub fn data_kind(&self) -> Option<&String>
pub fn data_kind(&self) -> Option<&String>
Get a reference to the bsp btdependency module’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 btdependency module’s data kind.
Trait Implementations
sourceimpl Debug for DependencyModule
impl Debug for DependencyModule
sourceimpl Default for DependencyModule
impl Default for DependencyModule
sourcefn default() -> DependencyModule
fn default() -> DependencyModule
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DependencyModule
impl<'de> Deserialize<'de> for DependencyModule
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<DependencyModule> for DependencyModule
impl PartialEq<DependencyModule> for DependencyModule
sourcefn eq(&self, other: &DependencyModule) -> bool
fn eq(&self, other: &DependencyModule) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DependencyModule) -> bool
fn ne(&self, other: &DependencyModule) -> bool
This method tests for !=.
sourceimpl Serialize for DependencyModule
impl Serialize for DependencyModule
impl Eq for DependencyModule
impl StructuralEq for DependencyModule
impl StructuralPartialEq for DependencyModule
Auto Trait Implementations
impl RefUnwindSafe for DependencyModule
impl Send for DependencyModule
impl Sync for DependencyModule
impl Unpin for DependencyModule
impl UnwindSafe for DependencyModule
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