pub struct CreateGraphRequest {
pub data: CreateGraphData,
}
Expand description
Request to create a new Graph
Fields§
§data: CreateGraphData
Implementations§
Source§impl CreateGraphRequest
Helper methods for creating graphs
impl CreateGraphRequest
Helper methods for creating graphs
Sourcepub fn with_description(self, description: String) -> Self
pub fn with_description(self, description: String) -> Self
Set description
Sourcepub fn with_graph_type(self, graph_type: String) -> Self
pub fn with_graph_type(self, graph_type: String) -> Self
Set graph type
Sourcepub fn with_visibility(self, visibility: GraphVisibility) -> Self
pub fn with_visibility(self, visibility: GraphVisibility) -> Self
Set visibility
Set tags
Sourcepub fn with_graph_data(self, data: Value) -> Self
pub fn with_graph_data(self, data: Value) -> Self
Set graph data
Trait Implementations§
Source§impl Clone for CreateGraphRequest
impl Clone for CreateGraphRequest
Source§fn clone(&self) -> CreateGraphRequest
fn clone(&self) -> CreateGraphRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateGraphRequest
impl Debug for CreateGraphRequest
Source§impl<'de> Deserialize<'de> for CreateGraphRequest
impl<'de> Deserialize<'de> for CreateGraphRequest
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
Auto Trait Implementations§
impl Freeze for CreateGraphRequest
impl RefUnwindSafe for CreateGraphRequest
impl Send for CreateGraphRequest
impl Sync for CreateGraphRequest
impl Unpin for CreateGraphRequest
impl UnwindSafe for CreateGraphRequest
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