pub enum ReturnAnnotation {
Transfer(TransferKind),
Nullable,
NotNullable,
Optional,
Skip,
Array,
ArrayDetailed(ArrayAnnotation),
ElementType(Vec<String>),
Type(String),
Attributes(Vec<(String, String)>),
Unknown(String),
}Expand description
Annotations valid on return values.
Variants§
Transfer(TransferKind)
Nullable
NotNullable
Optional
Skip
Array
ArrayDetailed(ArrayAnnotation)
ElementType(Vec<String>)
Type(String)
Attributes(Vec<(String, String)>)
Unknown(String)
Implementations§
Trait Implementations§
Source§impl Clone for ReturnAnnotation
impl Clone for ReturnAnnotation
Source§fn clone(&self) -> ReturnAnnotation
fn clone(&self) -> ReturnAnnotation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReturnAnnotation
impl Debug for ReturnAnnotation
Source§impl PartialEq for ReturnAnnotation
impl PartialEq for ReturnAnnotation
Source§fn eq(&self, other: &ReturnAnnotation) -> bool
fn eq(&self, other: &ReturnAnnotation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReturnAnnotation
impl Serialize for ReturnAnnotation
impl Eq for ReturnAnnotation
impl StructuralPartialEq for ReturnAnnotation
Auto Trait Implementations§
impl Freeze for ReturnAnnotation
impl RefUnwindSafe for ReturnAnnotation
impl Send for ReturnAnnotation
impl Sync for ReturnAnnotation
impl Unpin for ReturnAnnotation
impl UnsafeUnpin for ReturnAnnotation
impl UnwindSafe for ReturnAnnotation
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