pub struct UpdateRefOptions {
pub description: Patch<String>,
pub expires_at: Patch<Timestamp>,
pub count: Patch<u32>,
pub access_level: Patch<char>,
}Expand description
Options for updating an existing reference via PATCH semantics.
Each field uses Patch<T>: Undefined leaves the column unchanged,
Null clears it, Value(v) sets it. type, resource_id, and
params are intentionally immutable post-create.
Fields§
§description: Patch<String>§expires_at: Patch<Timestamp>Expiration timestamp. Null clears expiration (link never expires).
count: Patch<u32>Null clears the counter (unlimited uses).
access_level: Patch<char>Value('R'|'C'|'W').
Trait Implementations§
Source§impl Debug for UpdateRefOptions
impl Debug for UpdateRefOptions
Source§impl Default for UpdateRefOptions
impl Default for UpdateRefOptions
Source§fn default() -> UpdateRefOptions
fn default() -> UpdateRefOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateRefOptions
impl RefUnwindSafe for UpdateRefOptions
impl Send for UpdateRefOptions
impl Sync for UpdateRefOptions
impl Unpin for UpdateRefOptions
impl UnsafeUnpin for UpdateRefOptions
impl UnwindSafe for UpdateRefOptions
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