pub struct PublicSurface {
pub rpcs: Vec<PublicRpc>,
pub collections: Vec<PublicCollection>,
}Expand description
Declarative public-access surface for an app.
Anything listed here is reachable without an Authorization header. Anything not listed retains the default JWT-required behavior.
See core/src/extensions/sharing/ for the runtime enforcement.
Fields§
§rpcs: Vec<PublicRpc>Custom RPCs exposed publicly. If scope is non-empty, the request
must carry a share token whose context matches the request body on
every listed key.
collections: Vec<PublicCollection>CRUD collections exposed publicly with the listed actions. Allowed actions: “list”, “read”, “create”, “update”, “delete”.
Trait Implementations§
Source§impl Clone for PublicSurface
impl Clone for PublicSurface
Source§fn clone(&self) -> PublicSurface
fn clone(&self) -> PublicSurface
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 moreSource§impl Debug for PublicSurface
impl Debug for PublicSurface
Source§impl Default for PublicSurface
impl Default for PublicSurface
Source§fn default() -> PublicSurface
fn default() -> PublicSurface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicSurface
impl<'de> Deserialize<'de> for PublicSurface
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
Auto Trait Implementations§
impl Freeze for PublicSurface
impl RefUnwindSafe for PublicSurface
impl Send for PublicSurface
impl Sync for PublicSurface
impl Unpin for PublicSurface
impl UnsafeUnpin for PublicSurface
impl UnwindSafe for PublicSurface
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