pub struct UpstreamCatalog {
pub schema_version: u32,
pub source: UpstreamSource,
pub devices: Vec<UpstreamDevice>,
}Fields§
§schema_version: u32§source: UpstreamSource§devices: Vec<UpstreamDevice>Implementations§
Source§impl UpstreamCatalog
impl UpstreamCatalog
pub fn load_file(path: impl AsRef<Path>) -> Result<Self, UpstreamCatalogError>
pub fn validate(&self) -> Vec<String>
pub fn find_usb(&self, vid: u16, pid: u16) -> Option<&UpstreamDevice>
pub fn compare_openrgb(&self, openrgb: &OpenRgbCatalog) -> CatalogComparison
Trait Implementations§
Source§impl Clone for UpstreamCatalog
impl Clone for UpstreamCatalog
Source§fn clone(&self) -> UpstreamCatalog
fn clone(&self) -> UpstreamCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpstreamCatalog
impl Debug for UpstreamCatalog
Source§impl<'de> Deserialize<'de> for UpstreamCatalog
impl<'de> Deserialize<'de> for UpstreamCatalog
Source§fn 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
Auto Trait Implementations§
impl Freeze for UpstreamCatalog
impl RefUnwindSafe for UpstreamCatalog
impl Send for UpstreamCatalog
impl Sync for UpstreamCatalog
impl Unpin for UpstreamCatalog
impl UnsafeUnpin for UpstreamCatalog
impl UnwindSafe for UpstreamCatalog
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