pub enum EndpointType {
Primitive {
candid: String,
cardinality: EndpointCardinality,
name: String,
},
Named {
candid: String,
cardinality: EndpointCardinality,
name: String,
resolved: Option<Box<Self>>,
},
Optional {
candid: String,
cardinality: EndpointCardinality,
inner: Box<Self>,
},
Vector {
candid: String,
cardinality: EndpointCardinality,
inner: Box<Self>,
},
Record {
candid: String,
cardinality: EndpointCardinality,
fields: Vec<EndpointField>,
},
Variant {
candid: String,
cardinality: EndpointCardinality,
cases: Vec<EndpointField>,
},
Function {
candid: String,
cardinality: EndpointCardinality,
modes: Vec<EndpointMode>,
arguments: Vec<Self>,
returns: Vec<Self>,
},
Service {
candid: String,
cardinality: EndpointCardinality,
methods: Vec<EndpointServiceMethod>,
},
Class {
candid: String,
cardinality: EndpointCardinality,
initializers: Vec<Self>,
service: Box<Self>,
},
}Expand description
EndpointType
Variants§
Primitive
Named
Optional
Vector
Record
Variant
Function
Service
Class
Trait Implementations§
Source§impl Clone for EndpointType
impl Clone for EndpointType
Source§fn clone(&self) -> EndpointType
fn clone(&self) -> EndpointType
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 EndpointType
impl Debug for EndpointType
impl Eq for EndpointType
Source§impl PartialEq for EndpointType
impl PartialEq for EndpointType
Source§fn eq(&self, other: &EndpointType) -> bool
fn eq(&self, other: &EndpointType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EndpointType
impl Serialize for EndpointType
impl StructuralPartialEq for EndpointType
Auto Trait Implementations§
impl Freeze for EndpointType
impl RefUnwindSafe for EndpointType
impl Send for EndpointType
impl Sync for EndpointType
impl Unpin for EndpointType
impl UnsafeUnpin for EndpointType
impl UnwindSafe for EndpointType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.