Struct psibase::PackageRef
source · pub struct PackageRef {
pub name: String,
pub version: String,
}Fields§
§name: String§version: StringTrait Implementations§
source§impl Clone for PackageRef
impl Clone for PackageRef
source§fn clone(&self) -> PackageRef
fn clone(&self) -> PackageRef
Returns a copy 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 PackageRef
impl Debug for PackageRef
source§impl Default for PackageRef
impl Default for PackageRef
source§fn default() -> PackageRef
fn default() -> PackageRef
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PackageRef
impl<'de> Deserialize<'de> for PackageRef
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 Pack for PackageRef
impl Pack for PackageRef
source§impl PartialEq for PackageRef
impl PartialEq for PackageRef
source§fn eq(&self, other: &PackageRef) -> bool
fn eq(&self, other: &PackageRef) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Reflect for PackageRef
impl Reflect for PackageRef
type StaticType = PackageRef
fn reflect<V: Visitor>(visitor: V) -> V::Return
source§impl Serialize for PackageRef
impl Serialize for PackageRef
source§impl<'a> Unpack<'a> for PackageRef
impl<'a> Unpack<'a> for PackageRef
source§fn unpack(src: &'a [u8], pos: &mut u32) -> Result<Self>
fn unpack(src: &'a [u8], pos: &mut u32) -> Result<Self>
Convert from fracpack format. Also verifies the integrity of the data. Read more
source§fn verify(src: &'a [u8], pos: &mut u32) -> Result<()>
fn verify(src: &'a [u8], pos: &mut u32) -> Result<()>
Verify the integrity of fracpack data. You don’t need to call this if
using [Pack::unpack] since it verifies integrity during unpack.
impl Eq for PackageRef
impl StructuralPartialEq for PackageRef
Auto Trait Implementations§
impl RefUnwindSafe for PackageRef
impl Send for PackageRef
impl Sync for PackageRef
impl Unpin for PackageRef
impl UnwindSafe for PackageRef
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.