pub struct Private<T>(/* private fields */);
Expand description
Do not export the field via Falco tables API
This is a wrapper that tells the Rust SDK not to export a field to other plugins. It can be used to hold private plugin data or hold types that aren’t supported by the API (collections, enums etc.)
This type implements Deref
and DerefMut
, so you do not need any extra
code when accessing the actual data.
Note: the wrapped type must implement Default
as entries may be created
over the plugin API without any interaction with your plugin code.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Private<T>where
T: Freeze,
impl<T> RefUnwindSafe for Private<T>where
T: RefUnwindSafe,
impl<T> Send for Private<T>where
T: Send,
impl<T> Sync for Private<T>where
T: Sync,
impl<T> Unpin for Private<T>where
T: Unpin,
impl<T> UnwindSafe for Private<T>where
T: UnwindSafe,
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