pub enum PublicAccess {
Read,
Create,
Update,
Delete,
Subscribe,
Connect,
Publish,
}Expand description
Operations that can be declared publicly accessible via
@access(public: [read, create, ...]).
Variants§
Read
GET requests (allow_read)
Create
POST requests (allow_create)
Update
PUT/PATCH requests (allow_update)
Delete
DELETE requests (allow_delete)
Subscribe
SSE subscriptions (allow_subscribe)
Connect
WebSocket connections (allow_connect)
Publish
Publish operations (allow_publish)
Implementations§
Trait Implementations§
Source§impl Clone for PublicAccess
impl Clone for PublicAccess
Source§fn clone(&self) -> PublicAccess
fn clone(&self) -> PublicAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PublicAccess
Source§impl Debug for PublicAccess
impl Debug for PublicAccess
impl Eq for PublicAccess
Source§impl Hash for PublicAccess
impl Hash for PublicAccess
Source§impl PartialEq for PublicAccess
impl PartialEq for PublicAccess
Source§fn eq(&self, other: &PublicAccess) -> bool
fn eq(&self, other: &PublicAccess) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PublicAccess
Auto Trait Implementations§
impl Freeze for PublicAccess
impl RefUnwindSafe for PublicAccess
impl Send for PublicAccess
impl Sync for PublicAccess
impl Unpin for PublicAccess
impl UnsafeUnpin for PublicAccess
impl UnwindSafe for PublicAccess
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.