pub enum Projection {
Property(PropertyProjection),
Expr(ExprProjection),
}Expand description
Projection entry.
Variants§
Implementations§
Source§impl Projection
impl Projection
Sourcepub fn property(
source: impl Into<String>,
alias: impl Into<String>,
) -> Projection
pub fn property( source: impl Into<String>, alias: impl Into<String>, ) -> Projection
Project a property.
Sourcepub fn from_endpoint(
source: impl Into<String>,
alias: impl Into<String>,
) -> Projection
pub fn from_endpoint( source: impl Into<String>, alias: impl Into<String>, ) -> Projection
Project from the source endpoint of an edge.
Sourcepub fn to_endpoint(
source: impl Into<String>,
alias: impl Into<String>,
) -> Projection
pub fn to_endpoint( source: impl Into<String>, alias: impl Into<String>, ) -> Projection
Project from the target endpoint of an edge.
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
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 Projection
impl Debug for Projection
Source§impl<'de> Deserialize<'de> for Projection
impl<'de> Deserialize<'de> for Projection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Projection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Projection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExprProjection> for Projection
impl From<ExprProjection> for Projection
Source§fn from(value: ExprProjection) -> Projection
fn from(value: ExprProjection) -> Projection
Converts to this type from the input type.
Source§impl From<PropertyProjection> for Projection
impl From<PropertyProjection> for Projection
Source§fn from(value: PropertyProjection) -> Projection
fn from(value: PropertyProjection) -> Projection
Converts to this type from the input type.
Source§impl PartialEq for Projection
impl PartialEq for Projection
Source§impl Serialize for Projection
impl Serialize for Projection
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Projection
Auto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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