pub struct EntityKey {
pub id: Option<String>,
pub namespace: Option<String>,
}
Expand description
A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional namespace
or a user without a namespace
. The combination of id
and namespace
must be unique; however, the same id
can be used with different namespace
s.
This type is not used in any activity, and only used as part of another schema.
Fields§
§id: Option<String>
The ID of the entity. For Google-managed entities, the id
should be the email address of an existing group or user. Email addresses need to adhere to name guidelines for users and groups. For external-identity-mapped entities, the id
must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace
.
namespace: Option<String>
The namespace in which the entity exists. If not specified, the EntityKey
represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey
represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of identitysources/{identity_source}
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntityKey
impl<'de> Deserialize<'de> for EntityKey
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>,
impl Part for EntityKey
Auto Trait Implementations§
impl Freeze for EntityKey
impl RefUnwindSafe for EntityKey
impl Send for EntityKey
impl Sync for EntityKey
impl Unpin for EntityKey
impl UnwindSafe for EntityKey
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