Skip to main content

AnnotationKind

Enum AnnotationKind 

Source
pub enum AnnotationKind {
Show 74 variants Id, AutoId, Optional, Position, Value, Extensibility, Final, Appendable, Mutable, Key, MustUnderstand, DefaultLiteral, Default, Range, Min, Max, Unit, BitBound, External, Nested, Verbatim, Service, Oneway, Ami, HashId, DefaultNested, IgnoreLiteralNames, TryConstruct, NonSerialized, DataRepresentation, Topic, Choice, Empty, DdsService, DdsRequestTopic, DdsReplyTopic, Rename, Name, RenameAll, Skip, OmitEmpty, Doc, Derive, Rust, Version, Added, Removed, Http, Get, Post, Put, Patch, Delete, Head, Options, Path, Query, Header, Cookie, Body, Flatten, HttpBasic, HttpBearer, ApiKey, NoSecurity, Request, Response, ServerStream, ClientStream, BidiStream, StreamCodec, Upgrade, Deprecated, Cors,
}
Expand description

Typed identity of an annotation from the shared built-in table.

Variants§

§

Id

The @id annotation.

§

AutoId

The @autoid annotation.

§

Optional

The @optional annotation.

§

Position

The @position annotation.

§

Value

The @value annotation.

§

Extensibility

The @extensibility annotation.

§

Final

The @final annotation.

§

Appendable

The @appendable annotation.

§

Mutable

The @mutable annotation.

§

Key

The @key annotation.

§

MustUnderstand

The @must_understand annotation.

§

DefaultLiteral

The @default_literal annotation.

§

Default

The @default annotation.

§

Range

The @range annotation.

§

Min

The @min annotation.

§

Max

The @max annotation.

§

Unit

The @unit annotation.

§

BitBound

The @bit_bound annotation.

§

External

The @external annotation.

§

Nested

The @nested annotation.

§

Verbatim

The @verbatim annotation.

§

Service

The @service annotation.

§

Oneway

The @oneway annotation.

§

Ami

The @ami annotation.

§

HashId

The @hashid annotation.

§

DefaultNested

The @default_nested annotation.

§

IgnoreLiteralNames

The @ignore_literal_names annotation.

§

TryConstruct

The @try_construct annotation.

§

NonSerialized

The @non_serialized annotation.

§

DataRepresentation

The @data_representation annotation.

§

Topic

The @topic annotation.

§

Choice

The @choice annotation.

§

Empty

The @empty annotation.

§

DdsService

The @dds_service annotation.

§

DdsRequestTopic

The @dds_request_topic annotation.

§

DdsReplyTopic

The @dds_reply_topic annotation.

§

Rename

The @rename annotation.

§

Name

The @name annotation.

§

RenameAll

The @rename_all annotation.

§

Skip

The @skip annotation.

§

OmitEmpty

The @omitempty annotation.

§

Doc

The @doc annotation.

§

Derive

The @derive annotation.

§

Rust

The @rust annotation.

§

Version

The @version annotation.

§

Added

The @added annotation.

§

Removed

The @removed annotation.

§

Http

The @http annotation.

§

Get

The @get annotation.

§

Post

The @post annotation.

§

Put

The @put annotation.

§

Patch

The @patch annotation.

§

Delete

The @delete annotation.

§

Head

The @head annotation.

§

Options

The @options annotation.

§

Path

The @path annotation.

§

Query

The @query annotation.

§

Header

The @header annotation.

§

Cookie

The @cookie annotation.

§

Body

The @body annotation.

§

Flatten

The @flatten annotation.

§

HttpBasic

The @http_basic annotation.

§

HttpBearer

The @http_bearer annotation.

§

ApiKey

The @api_key annotation.

§

NoSecurity

The @no_security annotation.

§

Request

The @request annotation.

§

Response

The @response annotation.

§

ServerStream

The @server_stream annotation.

§

ClientStream

The @client_stream annotation.

§

BidiStream

The @bidi_stream annotation.

§

StreamCodec

The @stream_codec annotation.

§

Upgrade

The @upgrade annotation.

§

Deprecated

The @deprecated annotation.

§

Cors

The @cors annotation.

Implementations§

Source§

impl AnnotationKind

Source

pub fn from_name(name: &str) -> Option<Self>

Recognizes a name without retaining a second spelling table.

Source

pub fn is_lifecycle(self) -> bool

Whether projection removes this annotation after evaluating the timeline.

Trait Implementations§

Source§

impl Clone for AnnotationKind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AnnotationKind

Source§

impl Debug for AnnotationKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for AnnotationKind

Source§

impl PartialEq for AnnotationKind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AnnotationKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.