pub struct Routing {
pub app: Arc<str>,
pub resource: Arc<str>,
pub database: Arc<str>,
pub key: Option<String>,
}Expand description
Routing block: app/resource/database identifiers settled at request-routing time.
Fields§
§app: Arc<str>Application id — first URL segment, e.g. "yeti-auth".
resource: Arc<str>Resource id — second URL segment, e.g. "Users". For table-backed
resources this is the table name.
database: Arc<str>Database name — settled at request-routing time from the
TableDefinition.database (or app default "data" when the
table doesn’t specify). Distinct from app: the
@database schema directive can point a table at a database
shared across apps. Permission checks read this field.
key: Option<String>None = collection-level operation; Some(k) = single-record operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Routing
impl RefUnwindSafe for Routing
impl Send for Routing
impl Sync for Routing
impl Unpin for Routing
impl UnsafeUnpin for Routing
impl UnwindSafe for Routing
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