Struct eva_common::OID
source · pub struct OID { /* private fields */ }Implementations§
source§impl OID
impl OID
pub fn new(kind: ItemKind, group: &str, id: &str) -> EResult<Self>
pub fn new0(kind: ItemKind, id: &str) -> EResult<Self>
pub fn new0_unchecked(kind: ItemKind, id: &str) -> EResult<Self>
pub fn id(&self) -> &str
pub fn full_id(&self) -> &str
pub fn group(&self) -> Option<&str>
pub fn kind(&self) -> ItemKind
pub fn as_str(&self) -> &str
pub fn as_path(&self) -> &str
pub fn is_wildcard(&self) -> bool
pub fn to_wildcard_str(&self, wildcard_suffix: &str) -> String
pub fn serialize_into(&self, target: &mut BTreeMap<Value, Value>)
pub fn from_str_type(tp: ItemKind, s: &str) -> EResult<Self>
pub fn from_path(s: &str) -> EResult<Self>
Trait Implementations§
source§impl<'r, DB: Database> Decode<'r, DB> for OID
impl<'r, DB: Database> Decode<'r, DB> for OID
source§fn decode(value: <DB as HasValueRef<'r>>::ValueRef) -> Result<Self, BoxDynError>
fn decode(value: <DB as HasValueRef<'r>>::ValueRef) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
source§impl<'de> Deserialize<'de> for OID
impl<'de> Deserialize<'de> for OID
source§fn deserialize<D>(deserializer: D) -> Result<OID, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<OID, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode<'_, Postgres> for OID
impl Encode<'_, Postgres> for OID
source§fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl<'q> Encode<'q, Sqlite> for OID
impl<'q> Encode<'q, Sqlite> for OID
source§fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
Writes the value of
self into buf in the expected format for the database.source§fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn size_hint(&self) -> usize
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl From<OID> for OIDMaskList
impl From<OID> for OIDMaskList
source§impl Ord for OID
impl Ord for OID
source§impl PartialEq for OID
impl PartialEq for OID
source§impl PartialOrd for OID
impl PartialOrd for OID
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl PgHasArrayType for OID
impl PgHasArrayType for OID
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
source§impl Type<Postgres> for OID
impl Type<Postgres> for OID
source§fn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
source§fn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Eq for OID
Auto Trait Implementations§
impl RefUnwindSafe for OID
impl Send for OID
impl Sync for OID
impl Unpin for OID
impl UnwindSafe for OID
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<T> CallHasher for T
impl<T> CallHasher for T
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.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.