pub enum Entity {
Show 24 variants
Tenant(String),
Site(String),
Brand(String),
Storefront(String),
User(String),
Group(String),
Team(String),
ServiceAccount(String),
Page(String),
Navigation(String),
Product(String),
Collection(String),
Order(String),
Subscription(String),
MembershipTier(String),
Event(String),
EventSlot(String),
Booking(String),
Media(String),
MediaLibrary(String),
Asset(String),
AssetFolder(String),
ThemeAssetBundle(String),
AdminModule(String),
}Variants§
Tenant(String)
Site(String)
Brand(String)
Storefront(String)
User(String)
Group(String)
Team(String)
ServiceAccount(String)
Page(String)
Product(String)
Collection(String)
Order(String)
Subscription(String)
MembershipTier(String)
Event(String)
EventSlot(String)
Booking(String)
Media(String)
MediaLibrary(String)
Asset(String)
AssetFolder(String)
ThemeAssetBundle(String)
AdminModule(String)
Implementations§
Source§impl Entity
impl Entity
pub fn tenant(id: impl Into<String>) -> Self
pub fn site(id: impl Into<String>) -> Self
pub fn brand(id: impl Into<String>) -> Self
pub fn storefront(id: impl Into<String>) -> Self
pub fn user(id: impl Into<String>) -> Self
pub fn any_user() -> Self
pub fn group(id: impl Into<String>) -> Self
pub fn team(id: impl Into<String>) -> Self
pub fn service_account(id: impl Into<String>) -> Self
pub fn page(id: impl Into<String>) -> Self
pub fn product(id: impl Into<String>) -> Self
pub fn collection(id: impl Into<String>) -> Self
pub fn order(id: impl Into<String>) -> Self
pub fn subscription(id: impl Into<String>) -> Self
pub fn membership_tier(id: impl Into<String>) -> Self
pub fn event(id: impl Into<String>) -> Self
pub fn event_slot(id: impl Into<String>) -> Self
pub fn booking(id: impl Into<String>) -> Self
pub fn media(id: impl Into<String>) -> Self
pub fn media_library(id: impl Into<String>) -> Self
pub fn asset(id: impl Into<String>) -> Self
pub fn asset_folder(id: impl Into<String>) -> Self
pub fn theme_asset_bundle(id: impl Into<String>) -> Self
pub fn admin_module(id: impl Into<String>) -> Self
pub const fn namespace(&self) -> Namespace
pub fn id(&self) -> &str
pub fn to_object(&self) -> Object
pub fn from_object(object: &Object) -> Option<Self>
pub fn as_subject(&self) -> DefaultSubject
Trait Implementations§
impl Eq for Entity
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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