pub struct Args {
pub bucket: Option<String>,
pub object: Option<String>,
pub version_id: Option<String>,
pub objects: Option<Vec<ObjectVersion>>,
pub metadata: Option<HashMap<String, String>>,
}
Expand description
Args - defines the arguments for API operations Args is used to define the arguments for API operations.
§Example
use rustfs_obs::Args;
use std::collections::HashMap;
let args = Args::new()
.set_bucket(Some("my-bucket".to_string()))
.set_object(Some("my-object".to_string()))
.set_version_id(Some("123".to_string()))
.set_metadata(Some(HashMap::new()));
Fields§
§bucket: Option<String>
§object: Option<String>
§version_id: Option<String>
§objects: Option<Vec<ObjectVersion>>
§metadata: Option<HashMap<String, String>>
Implementations§
Source§impl Args
impl Args
Sourcepub fn set_bucket(self, bucket: Option<String>) -> Self
pub fn set_bucket(self, bucket: Option<String>) -> Self
Set the bucket
Sourcepub fn set_object(self, object: Option<String>) -> Self
pub fn set_object(self, object: Option<String>) -> Self
Set the object
Sourcepub fn set_version_id(self, version_id: Option<String>) -> Self
pub fn set_version_id(self, version_id: Option<String>) -> Self
Set the version ID
Sourcepub fn set_objects(self, objects: Option<Vec<ObjectVersion>>) -> Self
pub fn set_objects(self, objects: Option<Vec<ObjectVersion>>) -> Self
Set the objects
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Args
impl<'de> Deserialize<'de> for Args
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
impl Eq for Args
impl StructuralPartialEq for Args
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request