pub struct PinStore { /* private fields */ }Implementations§
Source§impl PinStore
impl PinStore
pub fn new() -> Result<Self, PinError>
pub fn add(&mut self, pin: Pin) -> Result<(), PinError>
pub fn remove(&mut self, alias_or_id: &str) -> Result<Pin, PinError>
pub fn list(&self, filter_type: Option<ResourceType>) -> Vec<&Pin>
pub fn find_by_alias(&self, alias: &str) -> Option<&Pin>
pub fn all(&self) -> &[Pin]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PinStore
impl<'de> Deserialize<'de> for PinStore
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 PinStore
impl RefUnwindSafe for PinStore
impl Send for PinStore
impl Sync for PinStore
impl Unpin for PinStore
impl UnwindSafe for PinStore
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