pub struct VarBinaryDataType {
pub max_length: Option<u32>,
}Expand description
Variable-length binary data.
Maps to: BYTEA (PostgreSQL), VARBINARY(n) (SQL Server, Snowflake),
String (ClickHouse), BINARY (Databricks).
§Example
use razeri_plugin_contract::data_type::VarBinaryDataType;
// Fixed max length
let vb = VarBinaryDataType::new(1024);
assert_eq!(vb.max_length, Some(1024));
// Unlimited length
let blob = VarBinaryDataType::unlimited();
assert_eq!(blob.max_length, None);Fields§
§max_length: Option<u32>Maximum length in bytes (None = unlimited/MAX).
Implementations§
Trait Implementations§
Source§impl Clone for VarBinaryDataType
impl Clone for VarBinaryDataType
Source§impl Debug for VarBinaryDataType
impl Debug for VarBinaryDataType
impl Eq for VarBinaryDataType
Source§impl Hash for VarBinaryDataType
impl Hash for VarBinaryDataType
Source§impl PartialEq for VarBinaryDataType
impl PartialEq for VarBinaryDataType
impl StructuralPartialEq for VarBinaryDataType
Auto Trait Implementations§
impl Freeze for VarBinaryDataType
impl RefUnwindSafe for VarBinaryDataType
impl Send for VarBinaryDataType
impl Sync for VarBinaryDataType
impl Unpin for VarBinaryDataType
impl UnsafeUnpin for VarBinaryDataType
impl UnwindSafe for VarBinaryDataType
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