pub struct PinCollection {
pub version: u32,
pub items: Vec<ShellPin>,
}Fields§
§version: u32§items: Vec<ShellPin>Implementations§
Source§impl PinCollection
impl PinCollection
pub fn restore(self) -> ShellResult<Self>
pub fn pin(&mut self, target: ShellPinTarget) -> ShellResult<PinMutation>
pub fn unpin(&mut self, target: &ShellPinTarget) -> PinMutation
pub fn is_pinned(&self, target: &ShellPinTarget) -> bool
Trait Implementations§
Source§impl Clone for PinCollection
impl Clone for PinCollection
Source§fn clone(&self) -> PinCollection
fn clone(&self) -> PinCollection
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 PinCollection
impl Debug for PinCollection
Source§impl Default for PinCollection
impl Default for PinCollection
Source§impl<'de> Deserialize<'de> for PinCollection
impl<'de> Deserialize<'de> for PinCollection
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
impl Eq for PinCollection
Source§impl PartialEq for PinCollection
impl PartialEq for PinCollection
Source§impl Serialize for PinCollection
impl Serialize for PinCollection
impl StructuralPartialEq for PinCollection
Auto Trait Implementations§
impl Freeze for PinCollection
impl RefUnwindSafe for PinCollection
impl Send for PinCollection
impl Sync for PinCollection
impl Unpin for PinCollection
impl UnsafeUnpin for PinCollection
impl UnwindSafe for PinCollection
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