pub struct GraphMetrics {Show 14 fields
pub id: Uuid,
pub num_tokens: Option<i32>,
pub num_nodes: Option<i32>,
pub num_edges: Option<i32>,
pub mean_degree: Option<f64>,
pub edge_density: Option<f64>,
pub num_connected_components: Option<i32>,
pub sizes_of_connected_components: Option<Value>,
pub num_selfloops: Option<i32>,
pub diameter: Option<i32>,
pub avg_shortest_path_length: Option<f64>,
pub avg_clustering: Option<f64>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}Fields§
§id: Uuid§num_tokens: Option<i32>§num_nodes: Option<i32>§num_edges: Option<i32>§mean_degree: Option<f64>§edge_density: Option<f64>§num_connected_components: Option<i32>§sizes_of_connected_components: Option<Value>§num_selfloops: Option<i32>§diameter: Option<i32>§avg_shortest_path_length: Option<f64>§avg_clustering: Option<f64>§created_at: DateTime<Utc>§updated_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for GraphMetrics
impl Clone for GraphMetrics
Source§fn clone(&self) -> GraphMetrics
fn clone(&self) -> GraphMetrics
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 GraphMetrics
impl Debug for GraphMetrics
Source§impl<'de> Deserialize<'de> for GraphMetrics
impl<'de> Deserialize<'de> for GraphMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GraphMetrics> for ActiveModel
impl From<&GraphMetrics> for ActiveModel
Source§fn from(gm: &GraphMetrics) -> Self
fn from(gm: &GraphMetrics) -> Self
Converts to this type from the input type.
Source§impl From<Model> for GraphMetrics
impl From<Model> for GraphMetrics
Auto Trait Implementations§
impl Freeze for GraphMetrics
impl RefUnwindSafe for GraphMetrics
impl Send for GraphMetrics
impl Sync for GraphMetrics
impl Unpin for GraphMetrics
impl UnsafeUnpin for GraphMetrics
impl UnwindSafe for GraphMetrics
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