pub struct WildCardId;
Expand description
Use this type to build your wildcard entity types.
Often there already are wildcard shortcuts like add_wildcard_relationship
in the
write_relationships_request
builder that can be used instead of this.
However for more niche usecases where you need to pass in a WildCard user for an entity in an
operation that currently doesn’t have a shortcut, this can be implemented and used.
pub struct WildCardUser;
impl Entity for WildCardUser {
type Id = WildCardId;
type Relations = NoRelations;
fn object_type() -> &'static str {
User::object_type()
}
}
Trait Implementations§
Source§impl From<WildCardId> for String
impl From<WildCardId> for String
Source§fn from(_: WildCardId) -> Self
fn from(_: WildCardId) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WildCardId
impl RefUnwindSafe for WildCardId
impl Send for WildCardId
impl Sync for WildCardId
impl Unpin for WildCardId
impl UnwindSafe for WildCardId
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request