Enum gitlab::api::common::NameOrId [−][src]
Expand description
A strucutre for storing a name or ID where either is allowed.
Variants
The name of the entity.
Note that numeric names are ambiguous to GitLab. There is nothing done with this crate which attempts to resolve this ambiguity.
Id(u64)
The ID of the entity.
Tuple Fields of Id
0: u64
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for NameOrId<'a>
impl<'a> UnwindSafe for NameOrId<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more