pub struct ProjectRef<'a>(/* private fields */);Expand description
A borrowed project name scoping a store operation.
Implementations§
Source§impl<'a> ProjectRef<'a>
impl<'a> ProjectRef<'a>
Sourcepub const DEFAULT: ProjectRef<'static>
pub const DEFAULT: ProjectRef<'static>
The default project — every pre-project resource + the CLI default. The only
place the literal is written is DEFAULT_PROJECT.
Sourcepub fn qualified(&self, base: &str) -> String
pub fn qualified(&self, base: &str) -> String
Project-qualify a guest data-plane namespace base (a handler/function
binding scope, a SQL identity, a messaging topic, or a blob-watch storage
prefix): the bare base for the reserved default project — so a
pre-project / single-project store keeps byte-identical keys and needs no
data migration — else "<project>/<base>". Project names are validated to
carry no / (validate_resource_name), so the single separator is
unambiguous. This is the tenant boundary for the guest data plane
(kv/blob/sql/messaging/logs), parallel to the project/<proj>/… keys the
control plane already uses.
Trait Implementations§
Source§impl<'a> Clone for ProjectRef<'a>
impl<'a> Clone for ProjectRef<'a>
Source§fn clone(&self) -> ProjectRef<'a>
fn clone(&self) -> ProjectRef<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for ProjectRef<'a>
Source§impl<'a> Debug for ProjectRef<'a>
impl<'a> Debug for ProjectRef<'a>
Source§impl Display for ProjectRef<'_>
impl Display for ProjectRef<'_>
impl<'a> Eq for ProjectRef<'a>
Source§impl<'a> From<&'a str> for ProjectRef<'a>
impl<'a> From<&'a str> for ProjectRef<'a>
Source§impl<'a> Hash for ProjectRef<'a>
impl<'a> Hash for ProjectRef<'a>
Source§impl<'a> PartialEq for ProjectRef<'a>
impl<'a> PartialEq for ProjectRef<'a>
impl<'a> StructuralPartialEq for ProjectRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProjectRef<'a>
impl<'a> RefUnwindSafe for ProjectRef<'a>
impl<'a> Send for ProjectRef<'a>
impl<'a> Sync for ProjectRef<'a>
impl<'a> Unpin for ProjectRef<'a>
impl<'a> UnsafeUnpin for ProjectRef<'a>
impl<'a> UnwindSafe for ProjectRef<'a>
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
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
key and return true if they are equal.