Struct mlmd::requests::PutContextTypeRequest
source · [−]pub struct PutContextTypeRequest<'a> { /* private fields */ }
Expand description
Request builder for MetadataStore::put_context_type
.
Implementations
sourceimpl<'a> PutContextTypeRequest<'a>
impl<'a> PutContextTypeRequest<'a>
sourcepub fn can_omit_fields(self) -> Self
pub fn can_omit_fields(self) -> Self
When specified, stored properties can be omitted in the request type.
Otherwise, returns PutError::TypeAlreadyExists
if the stored type has properties not in the request type.
sourcepub fn can_add_fields(self) -> Self
pub fn can_add_fields(self) -> Self
When specified, new properties can be added.
Otherwise, returns PutError::TypeAlreadyExists
if the request type has properties that are not in the stored type.
sourcepub fn properties(self, properties: PropertyTypes) -> Self
pub fn properties(self, properties: PropertyTypes) -> Self
Adds properties to the type.
sourcepub fn property(self, name: &str, ty: PropertyType) -> Self
pub fn property(self, name: &str, ty: PropertyType) -> Self
Adds a property to the type.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PutContextTypeRequest<'a>
impl<'a> Send for PutContextTypeRequest<'a>
impl<'a> !Sync for PutContextTypeRequest<'a>
impl<'a> Unpin for PutContextTypeRequest<'a>
impl<'a> !UnwindSafe for PutContextTypeRequest<'a>
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