pub struct OIDMask { /* private fields */ }
Implementations§
Source§impl OIDMask
impl OIDMask
pub fn kind(&self) -> Option<ItemKind>
Sourcepub fn to_wildcard_oid(&self) -> EResult<OID>
pub fn to_wildcard_oid(&self) -> EResult<OID>
A special case, when OID mask can be converted to “wildcard OID” - an OID, where id is the wildcard symbol. Wildcard OIDs are special types of OIDs, which are fully compatible with majority of ACL checkers and can be used to obtain data from various database sources, which support wildcard selections (such as like ‘kind:group/%’ in SQL
pub fn from_path(s: &str) -> EResult<Self>
pub fn as_path(&self) -> String
pub fn chunks(&self) -> Option<Vec<&str>>
pub fn new_any() -> Self
pub fn matches(&self, oid: &OID) -> bool
Trait Implementations§
Source§impl<'r, DB: Database> Decode<'r, DB> for OIDMask
impl<'r, DB: Database> Decode<'r, DB> for OIDMask
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 OIDMask
impl<'de> Deserialize<'de> for OIDMask
Source§fn deserialize<D>(deserializer: D) -> Result<OIDMask, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<OIDMask, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode<'_, Postgres> for OIDMask
impl Encode<'_, Postgres> for OIDMask
Source§fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
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>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Sqlite> for OIDMask
impl<'q> Encode<'q, Sqlite> for OIDMask
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 produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl From<OIDMask> for OIDMaskList
impl From<OIDMask> for OIDMaskList
Source§impl FromIterator<OIDMask> for OIDMaskList
impl FromIterator<OIDMask> for OIDMaskList
Source§impl Ord for OIDMask
impl Ord for OIDMask
Source§impl PartialOrd for OIDMask
impl PartialOrd for OIDMask
Source§impl PgHasArrayType for OIDMask
impl PgHasArrayType for OIDMask
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
Source§impl Type<Postgres> for OIDMask
impl Type<Postgres> for OIDMask
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 OIDMask
Auto Trait Implementations§
impl Freeze for OIDMask
impl RefUnwindSafe for OIDMask
impl Send for OIDMask
impl Sync for OIDMask
impl Unpin for OIDMask
impl UnwindSafe for OIDMask
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
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§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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more