pub struct Output {
pub name: Option<String>,
pub normaliser: Option<NormaliserType>,
}
Expand description
Houses data around the outputs of the model.
§Fields
name
- The name of the output.normaliser
- The normaliser to be applied to the output if there is one.
Fields§
§name: Option<String>
§normaliser: Option<NormaliserType>
Implementations§
source§impl Output
impl Output
sourcepub fn fresh() -> Self
pub fn fresh() -> Self
Creates a new instance of the Output struct with no normaliser or name.
§Returns
A new instance of the Output struct with no normaliser or name.
sourcepub fn new(name: String) -> Self
pub fn new(name: String) -> Self
Creates a new instance of the Output struct without a normaliser.
§Arguments
name
- The name of the output.
sourcepub fn add_normaliser(&mut self, normaliser: NormaliserType)
pub fn add_normaliser(&mut self, normaliser: NormaliserType)
Adds a normaliser to the output.
§Arguments
normaliser
- The normaliser to be applied to the output.
sourcepub fn from_string(data: String) -> Result<Self, SurrealError>
pub fn from_string(data: String) -> Result<Self, SurrealError>
Trait Implementations§
source§impl PartialEq for Output
impl PartialEq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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