pub struct Parameter {
pub name: String,
pub content: ParameterContent,
/* private fields */
}Fields§
§name: String§content: ParameterContentImplementations§
Source§impl Parameter
impl Parameter
Sourcepub fn new<N: AsRef<str>>(
name: N,
value: ParameterContent,
) -> Result<Self, Error>
pub fn new<N: AsRef<str>>( name: N, value: ParameterContent, ) -> Result<Self, Error>
Create new Parameter.
Sourcepub fn from_config_with_exact_version(
config: Value,
version: i64,
) -> Result<Self, Error>
pub fn from_config_with_exact_version( config: Value, version: i64, ) -> Result<Self, Error>
Create String Parameter of model config with exact version of the model.
config: model config.pbtxt as json value.
Check load_config_as_json to permutate .pbtxt config to json value.
If Options::model_control_mode set as EXPLICIT and the result of this method is passed to crate::Server::load_model_with_parametrs,
the server will load only that exact model and only that exact version of it.
Trait Implementations§
impl Send for Parameter
impl Sync for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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