pub struct UpdateShareEntryOptions {
pub permission: Patch<char>,
pub expires_at: Patch<Timestamp>,
}Expand description
Options for updating an existing share entry via PATCH semantics.
Each field uses Patch<T>: Undefined leaves the column unchanged,
Null clears it, Value(v) sets it. resource_type, resource_id,
subject_type, subject_id, created_by, and created_at are
intentionally immutable post-create.
Fields§
§permission: Patch<char>Value('R'|'C'|'W'|'A'). Null is rejected at the handler
boundary — to revoke access, DELETE the share entry instead.
expires_at: Patch<Timestamp>Expiration timestamp. Null clears expiration (share never expires).
Trait Implementations§
Source§fn default() -> UpdateShareEntryOptions
fn default() -> UpdateShareEntryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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