Struct wildland_corex::catlib_service::ForestMetaData
source · pub struct ForestMetaData { /* private fields */ }
Implementations§
source§impl ForestMetaData
impl ForestMetaData
pub fn new(devices: Vec<DeviceMetadata>) -> Self
pub fn get_device_metadata( &self, device_pubkey: PubKey ) -> Option<&DeviceMetadata>
pub fn devices(&self) -> impl Iterator<Item = &DeviceMetadata>
Trait Implementations§
source§impl<'de> Deserialize<'de> for ForestMetaData
impl<'de> Deserialize<'de> for ForestMetaData
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
source§impl Serialize for ForestMetaData
impl Serialize for ForestMetaData
source§impl TryFrom<ForestMetaData> for Vec<u8>
impl TryFrom<ForestMetaData> for Vec<u8>
§type Error = CatlibError
type Error = CatlibError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for ForestMetaData
impl Send for ForestMetaData
impl Sync for ForestMetaData
impl Unpin for ForestMetaData
impl UnwindSafe for ForestMetaData
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