pub struct PartitionId {
pub database_id: Option<String>,
pub namespace_id: Option<String>,
pub project_id: Option<String>,
}
Expand description
A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be ""
. - Must be valid UTF-8 bytes. - Must have values that match regex [A-Za-z\d\.\-_]{1,100}
If the value of any dimension matches regex __.*__
, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state.
This type is not used in any activity, and only used as part of another schema.
Fields§
§database_id: Option<String>
If not empty, the ID of the database to which the entities belong.
namespace_id: Option<String>
If not empty, the ID of the namespace to which the entities belong.
project_id: Option<String>
The ID of the project to which the entities belong.
Trait Implementations§
Source§impl Clone for PartitionId
impl Clone for PartitionId
Source§fn clone(&self) -> PartitionId
fn clone(&self) -> PartitionId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PartitionId
impl Debug for PartitionId
Source§impl Default for PartitionId
impl Default for PartitionId
Source§fn default() -> PartitionId
fn default() -> PartitionId
Source§impl<'de> Deserialize<'de> for PartitionId
impl<'de> Deserialize<'de> for PartitionId
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>,
Source§impl Serialize for PartitionId
impl Serialize for PartitionId
impl Part for PartitionId
Auto Trait Implementations§
impl Freeze for PartitionId
impl RefUnwindSafe for PartitionId
impl Send for PartitionId
impl Sync for PartitionId
impl Unpin for PartitionId
impl UnwindSafe for PartitionId
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<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>
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>
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