pub struct NeoStorageContext { /* private fields */ }Expand description
Neo N3 Storage Context type
Implementations§
Source§impl NeoStorageContext
impl NeoStorageContext
pub fn new(id: u32) -> NeoStorageContext
pub fn with_read_only(id: u32, read_only: bool) -> NeoStorageContext
pub fn read_only(id: u32) -> NeoStorageContext
pub fn id(&self) -> u32
pub fn is_read_only(&self) -> bool
pub fn as_read_only(&self) -> NeoStorageContext
Trait Implementations§
Source§impl Clone for NeoStorageContext
impl Clone for NeoStorageContext
Source§fn clone(&self) -> NeoStorageContext
fn clone(&self) -> NeoStorageContext
Returns a duplicate of the value. Read more
1.0.0 · 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 NeoStorageContext
impl Debug for NeoStorageContext
Source§impl<'de> Deserialize<'de> for NeoStorageContext
impl<'de> Deserialize<'de> for NeoStorageContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeoStorageContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeoStorageContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NeoStorageContext
impl PartialEq for NeoStorageContext
Source§impl Serialize for NeoStorageContext
impl Serialize for NeoStorageContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for NeoStorageContext
impl StructuralPartialEq for NeoStorageContext
Auto Trait Implementations§
impl Freeze for NeoStorageContext
impl RefUnwindSafe for NeoStorageContext
impl Send for NeoStorageContext
impl Sync for NeoStorageContext
impl Unpin for NeoStorageContext
impl UnwindSafe for NeoStorageContext
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