pub struct UpdateVariableOption {
pub name: Option<String>,
pub value: String,
}Fields§
§name: Option<String>New name for the variable. If the field is empty, the variable name won’t be updated. Forgejo will convert it to
uppercase.
value: StringValue of the variable to update. Special characters will be retained. Line endings will be normalized to LF to
match the behaviour of browsers. Encode the data with Base64 if line endings should be retained.
Trait Implementations§
Source§impl Clone for UpdateVariableOption
impl Clone for UpdateVariableOption
Source§fn clone(&self) -> UpdateVariableOption
fn clone(&self) -> UpdateVariableOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateVariableOption
impl Debug for UpdateVariableOption
Source§impl<'de> Deserialize<'de> for UpdateVariableOption
impl<'de> Deserialize<'de> for UpdateVariableOption
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
Source§impl PartialEq for UpdateVariableOption
impl PartialEq for UpdateVariableOption
Source§impl Serialize for UpdateVariableOption
impl Serialize for UpdateVariableOption
impl StructuralPartialEq for UpdateVariableOption
Auto Trait Implementations§
impl Freeze for UpdateVariableOption
impl RefUnwindSafe for UpdateVariableOption
impl Send for UpdateVariableOption
impl Sync for UpdateVariableOption
impl Unpin for UpdateVariableOption
impl UnsafeUnpin for UpdateVariableOption
impl UnwindSafe for UpdateVariableOption
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