Struct cyfs_lib::OpEnvSetWithKeyOutputRequest
source · [−]pub struct OpEnvSetWithKeyOutputRequest {
pub common: OpEnvOutputRequestCommon,
pub path: Option<String>,
pub key: String,
pub value: ObjectId,
pub prev_value: Option<ObjectId>,
pub auto_insert: bool,
}
Fields
common: OpEnvOutputRequestCommon
path: Option<String>
key: String
value: ObjectId
prev_value: Option<ObjectId>
auto_insert: bool
Implementations
sourceimpl OpEnvSetWithKeyOutputRequest
impl OpEnvSetWithKeyOutputRequest
pub fn new_path_and_key_value(
path: impl Into<String>,
key: impl Into<String>,
value: ObjectId,
prev_value: Option<ObjectId>,
auto_insert: bool
) -> Self
pub fn new_full_path_and_value(
full_path: impl Into<String>,
value: ObjectId,
prev_value: Option<ObjectId>,
auto_insert: bool
) -> Self
pub fn new_key_value(
key: impl Into<String>,
value: ObjectId,
prev_value: Option<ObjectId>,
auto_insert: bool
) -> Self
Trait Implementations
sourceimpl Clone for OpEnvSetWithKeyOutputRequest
impl Clone for OpEnvSetWithKeyOutputRequest
sourcefn clone(&self) -> OpEnvSetWithKeyOutputRequest
fn clone(&self) -> OpEnvSetWithKeyOutputRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl JsonCodec<OpEnvSetWithKeyOutputRequest> for OpEnvSetWithKeyOutputRequest
impl JsonCodec<OpEnvSetWithKeyOutputRequest> for OpEnvSetWithKeyOutputRequest
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
Auto Trait Implementations
impl RefUnwindSafe for OpEnvSetWithKeyOutputRequest
impl Send for OpEnvSetWithKeyOutputRequest
impl Sync for OpEnvSetWithKeyOutputRequest
impl Unpin for OpEnvSetWithKeyOutputRequest
impl UnwindSafe for OpEnvSetWithKeyOutputRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more